Background: Unit testing is the automated testing of units of source code against assumptions. The goal of unit testing is to write test cases with assumptions that test if a unit of code is truly working as intended. If an assumption fails, a potential issue is exposed, and code needs to be revised. By definition [...]
In a past blog post I explained why featuring posts using a taxonomy term is much more performant than using a meta query. The comment I get from people is “that’s awesome, but using tags to feature a post is not a good user experience”. I agree, attaching a “featured” tag to featured posts, while [...]
Last year I did a presentation at WordCamp Orange County, WordCamp Birmingham, WordCamp Toronto, and WordCamp Providence called “What You Missed in Computer Science”. I have a Computer Science degree which I believe has provided me with some tools to think about problems in a certain way. This presentation will teach you about some of [...]
This weekend I was lucky enough to present at the 2nd annual WordCamp Ottawa. My talk was titled “Saving Time with WP-CLI”. WP-CLI is a plugin that lets you interact with your WordPress installations via the command line. My talk runs through some cool built-in WP-CLI commands as well as creating custom commands. My slides [...]
So I’ve read all over the place that looking for posts based on a taxonomy is much quicker than looking up posts based on post meta. But why? I’ve yet to read any sort of technical explanation that satisfies my curiosity. I decided to do some research. I wrote some example code and used the [...]
Sign up for the latest WordPress tricks, tips, tutorials, and offers from the people who write the software.