[Resolved] Excluding a category from monthly/daily archives
I am in the process of making my girlfriend a web site @ http://www.amandajeankelly.com.
Using <?php query_posts(‘cat=-2’); ?> in my archives page, I am able to exclude category 2 (books) from my yearly archives with no problems, see http://www.amandajeankelly.com/2006.
This code however, creates another issue. On the monthly archives page (May, for example: http://www.amandajeankelly.com/2006/05) the posts are displayed the same as if they were on the yearly archives page, with other months’ posts showing up as well. Same for daily archives page.
Can someone tell me a better way to exclude category 2 from all of my archives page, or point me to a good plugin that does the job?
- The topic ‘[Resolved] Excluding a category from monthly/daily archives’ is closed to new replies.