WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Show only post with a specific category (2 posts)

  1. MaddTechWF
    Member
    Posted 3 years ago #

    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(); ?>
  2. esmi
    Forum Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.