Changing How Your WordPress Post Titles Appear: A First Filter Hook Tutorial
This Quick Guide covers how to use code to change your WordPress post titles. This is separate from manually changing one or more WordPress post titles, which you can do without code. Instead, it’s the kind of thing you’d want to use to change something about a lot of post titles at once, like adding “(Sale!)” in front of all 200 products in a product category.
get_queried_object(): How and Why to Use It
WordPress’s get_queried_object() function has the distinction of being, I think, the most useful core function in WordPress that I didn’t know about for the longest time.
How To Fix a WordPress Site Stuck in Maintenance Mode
This quick guide walks you through fixing a WordPress site that’s stuck in maintenance mode. This problem shows up as both the front-end and admin area of your site displaying nothing but “Briefly unavailable for scheduled maintenance. Check back in a minute.”
Move a WordPress Site with the Duplicator Plugin
There are a lot of migration systems for WordPress. We’ve had lots of good experiences with All-in-One WP Migration. Some people swear by WP Migrate DB Pro. Others are partial to WP-CLI’s terminal-based systems. One of the few tools I’d never tried was Duplicator, but I recently did and I love it. I was very pleasantly surprised about a specific facet of it: I don’t need WordPress to get a new local copy of a remote WordPress site running on my local machine. You just pull down two files, put them in the same folder, and then you’re set. It’s great!
Understanding is_singular in WordPress Templates
Let’s talk about is_singular, one of WordPress’s more complicated template tags. In WordPress themes (and plugins too), we use “conditional tags” to control what shows up. This Quick Guides explains how to use the is_singular conditional tag in WordPress, as well the two other related ones: is_page and is_single. As you might guess, they all tell use something about whether or not there is one piece of WordPress content. If it is (a) singular piece of content 🤓
Learning PHP for WordPress Development: while() Loops
Welcome to this discussion of PHP loops: what loops are, whey they’re important, and how to use PHP while() loops. This article continues our series explaining the basics of PHP for WordPress development.
Learning PHP for WordPress Development: Control Flow Basics
Welcome to this introduction to PHP control flow! This article continues our series explaining the basics of PHP for WordPress development.
How to See What Fonts a Website is Using
If you’ve ever wondered how to see what fonts a website is using, the answer is as simple as opening your browser inspector. Since every bit of a website is interpreted in your browser, if you know how to use your browser inspector properly you can figure out fonts, images, CSS properties, and anything else on the page.
Understanding PHP Globals and Variable Scope in WordPress
One of the most maligned features of WordPress is the use of “PHP global variables.” Whether you love them or hate them, global variables probably aren’t leaving WordPress soon. So today we’ll cover all there is to know about them. How to think about them. How you, in PHP, make variables global, access WordPress’s global variables, and a little about the theory and debate about global state in software applications.