Support » Themes and Templates » Exclude Category from query_posts loop

  • 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() ?>

    <h3>” rel=”bookmark”><?php the_title(); ?></h3>

    <?php the_content_limit(175, “[Read more]”); ?>

    <?php endwhile; ?>’

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Exclude Category from query_posts loop’ is closed to new replies.