The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. MaddTechWF
    Posted 5 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(); ?>
    	<?php endwhile; endif; ?>
    <?php get_footer(); ?>
  2. esmi
    Forum Moderator
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.