[Resolved] Having trouble with tax_query in query_posts
I’m modifying the default loop in an author archive to display multiple post types with post formats enabled. I tried using a tax_query to exclude several of the formats from the query but I can’t get it to work.
$pagedis properly defined higher up.
Anybody see anything wrong with this code block?
$exclude_terms = array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-quote', 'post-format-status', 'post-format-video' ), 'compare' => 'NOT IN' ) ); query_posts( $query_string . '&posts_per_page=10&post_type=any&paged=' . $paged . '&tax_query=' . $exclude_terms );
- The topic ‘[Resolved] Having trouble with tax_query in query_posts’ is closed to new replies.