Category: Tutorials

S

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

M

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

D

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

W

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

B

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

How to get customer feedback with surveys and polls

One of the most important things you can do to grow your business is get feedback from your customers. If you don’t know what your customers are looking for and why, no amount of tweaks to your site will have much of an effect. To find out the right headlines, media, content, and even product

How to create a conversion funnel in Google Analytics

Setting up a conversion funnel is a great way to see how well you are converting on your website, and where you can improve. A funnel is a visualization of the steps you want people to take on your website. For example, the top of the funnel would be visiting your homepage, and the bottom

Basic Growth Hacking

I recently decided to start focusing on growth for my company. After doing some research I stumbled on lots of articles about growth hacking, which is a term coined by Sean Ellis. It refers to data driven marketing strategies like analytics, conversion rate optimization, and customer retention. Any company can use these strategies, and they

Build a mobile app with Ionic + WordPress

Update 9/15: wpIonic has been modified to work with the WP-API version 2. I’ve also added new features such as post caching and bookmarks. Follow the project on Github for the most recent updates. Update 12/15: I wrote a new article on the Ionic blog about creating an app with Ionic 2 and the WP-API

Being a business owner is hard. I'm trying to get better in business and life, enter your email if you want to join me.
Holler Box