Support » Plugins » exclude a category from query posts

  • Resolved oldbag66

    (@oldbag66)


    hi, im making my own dynamic sidebar and i just want to exclude a category from this script, any help would be appreciated:

    <div class="widget">
    <?php query_posts('showposts=10'); ?>
    <li>
    	<h3>Latest News</h3>
    	<ul>
    		<?php while (have_posts()) : the_post(); ?>
    		<li><a href='<?php the_permalink() ?>'><?php the_title(); ?></a></li>
    		<?php endwhile; ?>
    	</ul>
    </li>
    </div>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘exclude a category from query posts’ is closed to new replies.