Since I have no idea what is going on with the other post getting closed even before it was posted let’s try again. I need to exclude a category from this loop. I have searched through the archives and tried several things, but couldn’t find one that worked right. For the record I want to exclude category 17. The loop in question is the chronological posts in the lower left column at http://bradstinyworld.com
‘ <div class=”hometitle”>Latest Posts</div>
<?php $page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; query_posts(“showposts=3&paged=$page”); while ( have_posts() ) : the_post() ?>
<?php the_content_limit(175, “[Read more]”); ?>
<?php endwhile; ?>’
- The topic ‘Exclude Category from query_posts loop’ is closed to new replies.