Ignoring two post categories
-
Okay, I’m upgrading my blog design and decided to add a “What CDs/What Books am I looking to buy” sidebar item. I just use extra custom fields for every post detail and put the posts in two categories depending on if it’s a book or a record. Well, I can hide one using.
<?php query_posts('cat=-2'); //Ignore first one ?>
Which easily ignores “Books”, but it won’t let me ignore the other if I just put another query_posts and do -3.Looking into it more, it seems that you can only use one query_posts per loop, so what can I do to ignore category 3 in the main loop, or did I do something wrong?
Any help would be much appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Ignoring two post categories’ is closed to new replies.