Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Making Advanced Taxonomy Queries

This page is marked as incomplete. You can help Codex by expanding it.


This article covers the topic of performing advanced taxonomy-centric queries (such as categories, tags, or custom taxonomies).

Making advanced post queries in WordPress is very well documented, but plugin and theme developers may find that they need to leverage WordPress's taxonomy system with the same level of flexibility as the post system.

Prerequisites & Assumptions

This article assumes that you are already very familiar with making MySQL queries both in and out of WordPress. You should also be very familiar with WordPress's $wpdb class object and its various methods.

Built-in WordPress Helper Functions

This article is about making very advanced queries. Keep in mind that WordPress contains a large number of helper functions for making simple taxonomy and term queries. Please see if these functions meet your needs before continuing on with this article...



Code Documentation