Support » Fixing WordPress » How can I exclude a category from all pages but the category archive?

  • I have a “haiku” category that I currently have excluded from my main indes using:
    <?php query_posts($query_string . '&cat=-11'); ?>

    I also want to exclude it from my archives BUT if I just add that code to the archive template, I imagine that will also exclude Haiku posts even from the Haiku category!

    Basically, I only want the Haiku posts to show in the “Haiku” category archive.

    I am using the Mystique theme, if that makes a difference.

  • The topic ‘How can I exclude a category from all pages but the category archive?’ is closed to new replies.