Querying Multiple Custom Taxonomy Terms

You’ll want to use the tax_query argument for query_posts/WP_Query.

query_posts( array(
  "tax_query" => array(
    array(
      "taxonomy" => "country",
      "field" => "slug",
      "terms" => array( "usa", "canada" )
    )
  )
) );

The tax_query argument is an array, so you can query multiple taxonomies.

Leave a Comment