O'Reilly logo

WordPress Mobile Applications with PhoneGap by Yuxian Eugene Liang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Putting everything together with the GeoPlaces theme

Now that we have seen how we can quickly convert a simple JavaScript/HTML app into a PhoneGap app, it's time to see how we can tie all these skills together and put them to use. We will now attempt to perform similar operations based on features unique to the GeoPlaces theme: read places data and post places data into our GeoPlaces WordPress app.

Before we start, we need to hack into the JSON-API plugin, as it doesn't support the input of custom_fields while creating posts.

Hacking the JSON-API plugin

Follow these steps to hack into the JSON-API plugin:

  1. Navigate to your wp-content/plugins folder and open up the JSON-API plugin folder. Then, go into the Controllers folder and open the posts.php

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required