Increasing the Max Results Returned from the WordPress REST API

Generally, the defaults associated with WordPress REST API responses are very reasonable. Case in point, there aren’t many situations where you would really need to get more than 100 results in a single API response. Pagination is supported, so in most cases loading more results is simply a matter of making an additional request. Sometimes… Read More

Shortcode Scrubber Plugin Released

The Shortcode Scrubber plugin is a powerful tool for confidently managing plugins and themes that use shortcodes. Most commonly, a site owner or web professional may want to remove a plugin from a site. Unfortunately, shortcodes are a bit of a hidden feature and disabling a plugin could potentially cause shortcodes in a hidden corner… Read More

Do I Need to Learn React to Build Gutenberg Blocks?

The question of the day is: Do I need to learn React in order to build a Gutenberg block? The short answer is no. You don’t need to know anything about React to build a Gutenberg block. The reason why is because WordPress has done a great job of abstracting away React and the foundational… Read More

Surfacing Gutenberg Blocks in the WordPress REST API

Gutenberg

The beauty of Gutenberg is that the HTML content is more structured and semantic while also simplifying the user experience. All of the data is stored in the post content, which is also great because we don’t have to request a bunch of post meta to render the page. On the other hand, if nothing… Read More

WordPress and the Open-Closed Principle

Rusty Open Sign

Oftentimes we think of the SOLID principles of object-oriented┬áprogramming as just that: object-oriented programming principles. However, we are going to take a closer look at the second principle, the open-closed principle, and see how it applies to WordPress. You are probably thinking, “WordPress isn’t really object-oriented”… and you’d be mostly right. Much of WordPress is… Read More

Advice for New Programmers

Learning to Code

I’ve been a programmer for just over a decade now and have always shared and taught others as I’ve learned. However, much of that information has never really been documented except in the form of videos from talks at conferences. I want to take some time to offer a few tips to those who are… Read More

Creating a Better WordPress Loop

A Better WordPress Loop

The WordPress loop is ubiquitous. It is one of the first things you learn as a WordPress developer and it is something you must know the intricacies of in order to avoid causing problems. I’ve dreamt of a day when the WordPress loop and all its various implementations are no longer necessary. Today, I would… Read More

Making WordPress REST API Calls Internally

WordPress REST API

The WordPress REST API is great for gaining access to your data from external sites or from front-end JavaScript applications. It is even great for one-off calls you probably used to make via normal WordPress AJAX. However, have you ever wanted or needed to make WordPress REST API calls internally? What do I mean? I… Read More

Git Autocorrect

Git

If you work with the command line often, chances are you use Git from the command line as well. How often do you find yourself mistyping a Git command only to have to type it all over again? By using Git autocorrect, we can alleviate this problem! By default, Git will offer you one or more suggestions… Read More

My Git Aliases

Git is an awesome tool for version control and has been accepted as the industry standard. However, Git commands can be very confusing and difficult to remember. When I first learned about version control I used something called Mercurial, which had simpler and more intuitive commands (generally speaking). In an effort to tame Git and… Read More