WordPress.org

Ready to get started?Download WordPress

Forums

How can I exclude a category from all pages but the category archive? (1 post)

  1. Nos402
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.