I'm querying multiple custom posts types and I'd like to filter certain posts that are tagged with a specific taxonomy term.
The taxonomy is "content" and the term is "indy"
I'm using the the code below.
<?php
// The Query
query_posts( array('post_type' => 'post', 'videos', 'music') );
// The Loop
while ( have_posts() ) : the_post(); ?>
<?php endwhile;
// Reset Query
wp_reset_query();
?>
How can I add that filter?
pre_get_posts. also see taxonomy and post type parameters forWP_Query. – Milo Feb 26 at 1:46