Query multiple custom taxonomies
-
Hi,
I’m currently building a site which requires me to query the posts for terms in multiple taxonomies.
I have a post type called ‘projects’ which has two taxonomies registered to it ‘artists’, and ‘visibility’
I need to query the projects for an artist term and a visibility term. My query currently looks like this:
$args = array( 'post_type' => array('projects'), 'artists_tax' => $artist, 'visibility_tax' => 'active', 'showpost' => 1 );
But, it doesn’t work. WP seems to just ignore the second taxonomy.
Has anyone come across this and is there a fix?
I’ve tried installing the ‘Query Multiple Taxonomies’ plugin but it doesn’t seem to do the trick. Maybe I’m missing something?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Query multiple custom taxonomies’ is closed to new replies.