Plugin Directory

Query Multiple Taxonomies

Filter posts through multiple taxonomies.

Error on activation: "Parse error: syntax error, unexpected T_CLASS..."

Make sure your host is running PHP 5. Add this line to wp-config.php to check:

var_dump(PHP_VERSION);

How do I define a custom taxonomy?

Try the Simple Taxonomies plugin.

Is there a template tag I can use instead of widgets?

You can use the_widget(), like so:

the_widget('Taxonomy_Drill_Down_Widget', array(
    'title' => '',
    'mode' => 'dropdowns',
    'taxonomies' => array( 'post_tag', 'color' ) // list of taxonomy names
));

'mode' can be one of 'lists' or 'dropdowns'

How can I customize the display?

The template hierarchy for multitax queries is taxonomy.php -> archive.php -> index.php.

If you need to get specific, you can use the is_multitax() conditional tag, which works similarly to is_tax():

is_multitax()

-> true if more than one taxonomy was queried

is_multitax( array('tax_a', 'tax_b') )

-> true if both tax_a and tax_b were queried

Requires: 3.1 or higher
Compatible up to: 3.2.1
Last Updated: 2011-7-6
Downloads: 15,662

Average Rating

4 stars
(51 ratings)

Support

1 of 2 support threads in the last three weeks have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
0,1,0
100,2,2 100,1,1
75,4,3 100,1,1 100,1,1 100,2,2 100,1,1
100,6,6 86,7,6 100,7,7
100,1,1
0,1,0
100,1,1 100,2,2
100,3,3 83,6,5
0,1,0
50,4,2 100,1,1
100,1,1
100,9,9
100,3,3
100,11,11
100,1,1