Tag Archives: wordpress mobile

imgCodeWhat to do when your ionic cannot pull data from your wordpress with JSON ApI ?

This plugin provides a JSON format for the content that is in the wordpress. But

  1. You will need to go to  wp-content/themes/myTheme
  2. open functions.php
  3.  Add this    header(“Access-Control-Allow-Origin: *”); right after <?php




header(“Access-Control-Allow-Origin: *”);

II. solution 2

Some advice to modify directly the pluggin

You just have to add:

     <? header("Access-Control-Allow-Origin: *"); ?>

On the file api.php, this file is located in wp-content/plugins/json-api/singletons/api.php

Your choice.


  • Share :

This is the tutorial on how to develop a wordpress mobile app with Ionic and Visual studio.


1 – What is Ionic Framework ?

Ionic Framework  is a mix of technology to create hybrid apps. It use angular for the web and cordova to wrap the all thing. If you need more info, ask my best friend google. The goal of this is not to repeat the definitions  for those framework but to show you the steps you need to get up and running in just a fews minutes.

With the addition of Ionic templates in Visual Studio adding fast UI and AngularJS to your Cordova apps is even easier. To get started, just search in the Visual Studio Gallery for “Ionic” and start a new project with the official Visual Studio Ionic Templates

  • Share :