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

Async or Defer JavaScript Files in WordPress

There are a lot of articles out there about how to async or defer scripts in WordPress, but they assume you’ll be writing all the code or using one of the bloated plugins to make it happen. In my case, I just needed the ability to async or defer a few scripts in a custom… Read More

WordPress Post Expiration Module

WordPress plugins are great, but sometimes you want to avoid having additional settings screens or giving a client access to make changes that could break functionality on their website. If you aren’t a coder and you want to automatically expire a post in WordPress, I’d recommend that you check out the Post Expirator plugin. However,… Read More

New Plugin Release: Simple Website Redirect

Piggybacking off of my last post regarding how to redirect an entire website except for the WordPress admin, I’m announcing the release of a new plugin: Simple Website Redirect. After being asked by someone “Where do I put the code?”, I went looking knowing I would find a plugin that does the same thing that… Read More

Redirect Entire Website Except WordPress Admin

I get asked a lot about how to handle different types of website redirects. Usually, someone wants to redirect an entire site, or maybe just redirect a subdomain.  Other times, they want to do simple one-off redirects. Many web servers that run WordPress use Apache, which means that .htaccess rules will work. Other web servers like… Read More