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 […]

EDD Metrics Plugin Released

I’ve been working on a new plugin for Easy Digital Downloads called EDD Metrics, it’s now released on the WordPress plugin repository. This plugin gives you valuable metrics on your business with comparisons to previous periods. If you are familiar with Baremetrics, this is basically a copy of that.  I love Baremetrics, but it just doesn’t […]

It would be better if your product didn’t exist

It’s true. No one wants to use your product, and it would be better if they didn’t have to. This is not just about crappy products, it’s about great ones too. Using your product is a necessary evil, because a better way doesn’t exist yet. It would be better if I didn’t have to use […]

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 […]

Javascript, APIs, and the Future of WordPress

Automattic just announced Calypso, which is a radical new interface for WordPress.com. It replaces the old WordPress.com admin experience with a faster, more modern approach. It uses a Javascript framework called React, which was developed by Facebook. The main advantage of React is that it’s supposed to allow development of web and mobile apps using […]

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 […]

4 Ways to Make Your Ionic App Feel Native

Recent developments in the hybrid world are blurring the lines between hybrid and native. You can now use native transitions and native scrolling, along with a fast framework like Ionic. In many cases, it’s impossible to tell any difference between hybrid and native, since many fully native apps use WebViews. The exciting thing is that […]

Working with Custom Post Types in WP-API v2

If you worked with the first version of the WP-API, you know that getting custom post types was really easy. To get all posts, I could send a GET request to http://scottbolinger.com/wp-json/posts. To get a specific type, I could send my request to http://scottbolinger.com/wp-json/posts?type=event. There have been some pretty big changes in version 2, which […]

Basic Authentication with the WP-API (v2) and AngularJS

Working on the WP-App Project, we need to use authentication to do certain things in the app. Deleting/approving comments, or listing users for example. Basic Authentication is handy for testing code, but it should only be used in development, since you send the user/pass with every request. For production, you’ll want to use OAuth from […]

The WP-App Project

Today I’m excited to announce the WP-App Project: a free, open-source mobile app for WordPress site management. The idea is to create a customizable mobile app for WordPress site owners to manage their posts, pages, comments, media, etc. What’s that you say, a WordPress app already exists? Ah, but not like this. No sir, not […]