Replace Post Meta Query with Taxonomy Query

In this post, I’ll cover how to replace a post meta query with a taxonomy query. Why, you ask? WordPress’ postmeta database table is not optimized for queries, so querying for posts based on their post meta like the below is inefficient. View the code on Gist. A much more efficient way to do this is […]