Remove Specific Categories From The wordpress Loop

Remove Specific Categories From The wordpress Loop

Try this code at any wordpress template file . -3 is showing excluded category id . It will works…Have a Good coding.:)

<?php query_posts('cat=-3'); ?>

<?php if (have_posts()) : ?>

<?php while (have_posts()) : the_post(); ?>

		<h3></h3>
		
		<p><?php the_time('F jS, Y') ?></p>

		<?php the_content(); ?>

<?php endwhile; ?>

Leave a Reply

Your email address will not be published. Required fields are marked *