Make a mobile app with WordPress & Phonegap: Part 3 – Menus

This is part 3 of our series about how to build a mobile app with WordPress and Phonegap using the JSON REST API. Here are links for part 1 and part 2.

At this point you should have a simple app that displays posts from WordPress in a list, and you can click those to transition to a single post view.

In part 3 of this series, we’ll add a panel menu and some static pages.

Download tutorial files

Continue reading “Make a mobile app with WordPress & Phonegap: Part 3 – Menus”

Make a mobile app with WordPress & Phonegap: Part 2 – Page Transitions

This is part 2 of our series about how to build a mobile app with WordPress and Phonegap using the JSON REST API. You can find part 1 here.

In part 2 of this series, we’ll learn how to add different views with page transitions.

Views are basically pages, but they work different than website pages. We are creating a single page app, so there aren’t really pages per se, but the content that is in view will change. That’s why it’s called a view.

Today we will add a feature where users can click on a post in the post list, and it will transition into a single post view. There will also be a back button to return to the post list.

Download tutorial files

Continue reading “Make a mobile app with WordPress & Phonegap: Part 2 – Page Transitions”

Using the WordPress REST API in a mobile app

Update 12/7/16: The REST API is now in WordPress core! You don’t currently need a plugin if using 4.7+.

View our updated article for using the final version of the WP-API in a mobile app using Ionic 2 here.

The REST API is currently a plugin that allows applications to access the data produced by WordPress in JSON format. Version 1.0 was recently released, and it is slated to be in WordPress core by version 4.1 later this year.

This is incredible news for anyone interested in making mobile apps with WordPress!

The implications of this API have already been written about by WP Tavern, this article will focus on how to use it to build a mobile application.

Let’s talk about creating a simple mobile app using Phonegap that will pull data from your site using the REST API.

Continue reading “Using the WordPress REST API in a mobile app”