Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Exclude certain category from custom post type
- $movies = new WP_Query(array(
- "post_type" => "movie",
- "posts_per_page" => -1,
- "order" => "ASC",
- 'tax_query' => array(
- array (
- 'taxonomy' => 'movie-cat',
- 'terms' => 'feature',
- 'field' => 'slug',
- 'include_children' => true,
- 'operator' => 'NOT IN'
- )
- ),
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement