I have been searching and searching and cannot seem to find a working answer. I am trying to show a specific category of a custom post type. Here is to code I am working with:
<?php $args = array( 'post_type' => 'roster', 'posts_per_page' => 30, 'orderby' => desc ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <h2 class="member-name"><?php the_title(); ?></h2> <div class="member-description"> <?php the_post_thumbnail('thumbnail');?> <?php the_content(); ?> </div> <?php endwhile; ?>
What do I need to insert to call the specific category or to filter out the other categories?