Display Custom Post by Category
-
Hi,
I have made a custom post type called meetings, which has 3 categories. I want to display only one of these categories (next meeting), how do I do this??? I tried ‘cat’ => ‘next-meeting’ but it doesnt work… Hope someone can help as it’s driving me crazy!
Here is my code:
<?php
$args = array(
‘post_type’ => ‘meetings’,
);
$query = new WP_Query( $args ); ?><section class=”meeting-post”>
<?php if( $query->have_posts () ) : while ($query->have_posts () ) : $query->the_post (); ?>// post content
<?php endwhile; endif; wp_reset_postdata(); ?>
</section>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Display Custom Post by Category’ is closed to new replies.