Created a custom post type added categories, want to display them but can't
-
Hello guys, I created a custom post type “awards” and then added a few categories under that post type. How would I go about in displaying the posts under category-1?
This is the code that I have:
<?php query_posts( array( 'post_type' => 'awards', 'categories' => 'restaurant' ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
The post type is “awards”, the category is “restaurant”
This kind of works, in the way that it displays the two latest posts under the post type “awards” but only one of the posts is under the category “restaurant”
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Created a custom post type added categories, want to display them but can't’ is closed to new replies.