Taxonomy Queries

Taxonomies are tools for organizing content in WordPress. Categories and tags are built-in taxonomies, and you can create additional taxonomies. Use the parameters below to query based on taxonomy terms.

The taxonomy you would like to query

The term (or terms) you would like to include


[display-posts taxonomy="color" tax_term="blue, green"]

Multiple taxonomy queries

While most people will only ever need a single taxonomy query, this plugin supports an infinite number of taxonomy queries. Let’s say you wanted to get all posts in category “featured” and also tagged “homepage”. We’ll use a shortcode that looks like this:

[display-posts taxonomy="category" tax_term="featured" taxonomy_2="post_tag" tax_2_term="homepage"]

You can string as many of those as you like, just start the count at 2. In the field listing below, replace (count) with an actual number.

Here’s the available fields:

Which taxonomy to query
Default: empty

Which terms to include (if more than one, separate with commas)
Default: empty

How to query the terms (IN, NOT IN, or AND)
Default: IN

Describe the relationship between the multiple taxonomy queries (should the results match all the queries or just one of them). Available options: AND and OR
Default: AND

Published by Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributor to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.