Preventing Form Resubmission Warnings in WordPress with the Post/Redirect/Get Pattern
Today’s article is on an advanced topic in WordPress development, and is by a distinguished guest and a truly outstanding WordPress developer and educator: Carl Alexander.
What WordPress Teaches Us About Software Ecosystems
WordPress is, without a doubt, one of the most successful pieces of software of all time. Sure, Microsoft’s Office and Windows are both more influential. Apple’s iOS is huge, as is Google’s Android. Linux is no chump either. But WordPress is relevant to all those platforms and more. And it has about the same name recognition to boot. If people can name a single piece of web infrastructure technology today, there’s a good chance of WordPress being the one they know. (Not counting Facebook as infrastructure.)
Adding and Using WordPress Custom Image Sizes: A Guide to the Best Thing Ever
I really love being able to set custom image sizes in WordPress. The power and flexibility this system opens up for building beautiful, easy-to-administer, performant websites is hard to overstate.
Making Your First WordPress Widget
Sidebars were one of the oldest features of WordPress as a publishing platform, and widgets have been in WordPress for years. This little quick guide walks through the process of making your own widget. Why would you want to?
Understanding Copies & References in PHP
The inner workings of PHP aren’t something most WordPress developers need to worry about too much. Especially if you focus on the front end and are a master of flex-box (I’m neither) you probably can safely never understand the subtleties of copies and passing-by-reference in PHP (or any other programming language). But as you make more complex plugins, this stuff starts to get kind of important. Important enough that you should read this great article by our friend Josh Pollock and get at least a little familiar with it.
New Theme Features in the Works for WordPress 4.7
I’m a bit behind the eight-ball on this. But I’m pretty excited by some of the new theme features that are in the works for WordPress 4.7. The most interesting to me is the new get_theme_file_uri() function, which will be a child-theme aware method of easily linking to your theme resources. Got that? It’s cool because:
As its GitHub documentation notes, the single-file PHP script searchreplacedb2 is “not terribly pretty, but it’s portable and it solves an important problem that comes up whenever WordPress sites get renamed.”
WordPress’s Crusade against Technical Responsibility
Andrey “Rarst” Savchenko is one of my favorite WordPress personalities. He’s one of only a few people who really love WordPress a lot, but also sometimes struggles to like it. It’s how I feel a lot too. And this post from him highlights so clearly the cause for a lot of that concern:
WordPress Coding Patterns: Setting Function Options with $args
Today’s topic is a pattern in WordPress programming called $args. It crops up all the time—so often that simply understanding it will make you a significantly more confident WordPress programmer. Let’s take a look!
Spelunking into the Template Hierarchy
The template hierarchy is one of my favorite features in WordPress. It not only makes child themes possible, but it also makes the whole ecosystem better because more code can be written to sit in smaller and smaller chunks. This is great. What’s also cool about it is that it’s all enabled by a few relatively small chunks of code. But staring at them starts to expose us to some of the most interesting parts of WordPress.