Category: Tutorials

  • How to Process Payments with the WooCommerce REST API and Stripe

    An interesting thing I found out while working with the WooCommerce REST API is that you can’t process payments. You can create orders, but you can’t actually send credit card details and make a payment. If you are making a WooCommerce mobile app this makes things a bit more complicated. I didn’t find many tutorials…

  • 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…

  • 4 Ways to Make Your Ionic App Feel Native

    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

    Check out an updated post on WordPress login using Typescript and Angular 2 with a free plugin here. 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…

  • How to get customer feedback with surveys and polls

    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

    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…