wpp_get_mostpopular for Custom Post Type not in a Custom Taxonomy
-
I am trying to get all popular posts that are in ‘catalog’ Custom Post Type and also not in ‘catalog_category’ Custom Taxonomy.
To query for these posts I used these arguments:
$taxonomy = 'catalog_category'; $terms = get_terms( $taxonomy, array('fields' => 'ids') ); $args = array( 'post_type' => 'catalog', 'tax_query' => array( array( 'taxonomy' => $taxonomy, 'terms' => $terms, 'operator' => 'NOT IN' ), ), );
Is it possible to achieve the same query for wpp_get_mostpopular?
I was able to get all ‘catalog’ items, but how do I get only those which don’t have any values of ‘catalog_category’ selected?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wpp_get_mostpopular for Custom Post Type not in a Custom Taxonomy’ is closed to new replies.