Tag Archives: wordpress mobile
Ionic wordpress Access-Control-Allow-Origin json ApI error (CORS)Posted by:Ryan zongo, May - 07 - 2016
What 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
- You will need to go to wp-content/themes/myTheme
- open functions.php
- Add this header(“Access-Control-Allow-Origin: *”); right after <?php
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
WpZ – The wordpress mobile app with Ionic and Visual Studio (Wpeasy)Posted by:Ryan zongo,
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