Query Multiple post type with multiple taxonomies
-
Hi,
I’m sure this is just operator problem but i just cant get it working. What i’m trying to do is to query post type a with category b, and post type c with category d and show it in one result. Thanks in advance
Here is my code:
query_posts(array( array( 'post_type' => array('post'), 'tax_query' => array( array( 'taxonomy' => ('category'), 'terms' => array('android'), 'field' => 'slug') ), 'paged' => $paged )), array( 'post_type' => array('reviews'), 'tax_query' => array( array( 'taxonomy' => ('review_category'), 'terms' => array('android'), 'field' => 'slug') ), 'paged' => $paged ));
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Query Multiple post type with multiple taxonomies’ is closed to new replies.