Show only post with a specific category
-
I have the following code on one of my pages. What do I need to do to it to make it only show a certain category?
<?php get_header(); ?> <div id="content-full2"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <div class="entry"> <?php the_content(); ?> </div> </div> <?php endwhile; endif; ?> <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Show only post with a specific category’ is closed to new replies.