"cateogry__and" work around
-
Hello!
So according to this: https://core.trac.www.ads-software.com/ticket/16157 and this: https://core.trac.www.ads-software.com/ticket/16706 …category__and has gone a bit AWOL. There’s a suggested workaround there in the form of this:
query_posts(array( 'tax_query' => array( array( 'taxonomy' => 'category', 'terms' => 1 ), array( 'taxonomy' => 'category', 'terms' => 461 ), ) ));
How can I work that above item, into my theme, which has this code for a query argument:
<?php $category_id = get_cat_ID($data['category']); ?> <?php $q = $category_id; ?> <?php $catArgs = array( 'category__and' => array($q, 6), 'orderby'=>meta_value, 'meta_value'=>student-sort, 'order'=>ASC, 'posts_per_page'=>5, 'offset'=>0 );?>
Any suggestions would be helpful.
Thank you!
Nadine
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘"cateogry__and" work around’ is closed to new replies.