Headless WordPress with Gatsby

I just released the Gatsby theme I use for this site, called Gatsby Theme Publisher. This site uses WordPress as a back-end, and Gatsby as a static front-end. I built this theme because I couldn’t find other themes that had all the features I wanted. You can clone it and use it on your own

How to Submit a Gravity Form While Offline

I get requests to build apps with offline form submission every so often, so I thought it would be fun to build one. In this tutorial I’ll show you how to build a web page on your site that works while offline, and can submit to Gravity Forms on your website when it regains a

Cordova In App Purchases – Validating Subscriptions

I recently built a fairly complex in app purchase system for a client that uses recurring subscriptions. It allows users to purchase a recurring subscription which gives them access to membership content in the app. Recurring purchases are quite a bit more complex than one-time purchases, because you have to keep track of when the

Building a WooCommerce REST API Mobile App

Recently I updated my WP Ionic project to include WooCommerce REST API support, just for fun. It’s become a pretty cool little app, so I thought I’d share it along with some things I learned. Here’s the tl;dr: It’s fast, really fast Variable products, shipping, and payments are the pain points There are pros and

Build a Mobile App With Ionic + WordPress

Learn how to build a mobile app that integrates Ionic with WordPress. This project includes: Ionic 3.9.2, WP-API v2 integration WP-API post integration with pull to refresh and infinite scroll Simple login and membership functionality WooCommerce REST API v2 with Stripe payments More coming soon… View on Github This project is mostly for fun, and

Some WP-API Tips for WordPress 4.7+

Now that the WP-API is in core, here are some useful tips for you. Filtering Posts Filtering posts was a bit confusing for me at first, because the documentation seems to suggest you would visit an endpoint like /posts/category/40 to get posts from a certain category. Instead, you are supposed to use arguments in your

My Javascript Tools and Workflow Tips

It’s important for a modern front-end developer to have good tools and workflow that is going to survive the perpetually changing land of frameworks, ES specs, Typescript, and slightlybetterthanwhatyoudidyesterday.js craziness. I’ve been working with modern JavaScript tools and frameworks for long enough to have nailed down a pretty good workflow, which I’ll share today. The

Dealing with Custom Taxonomies in the WP-API

Update: this article focuses on the WP-API v1. Click here for an article on filtering with the WP-API v2 in WordPress 4.7+. I have recently started working on a mobile app for a WordPress site that relies heavily on custom taxonomies. The app needs to pull in posts from WordPress through the WP-API, and allow