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