excluding multple categories
-
I’ve searched but can’t seem to find a definitive answer. Can I exclude multiple categories using query_post?
<?php
if (is_home()) {
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(“cat=-26&cat=-36&paged=$paged”);
}
?>I read at another website that if I put the excluded categories into a parent category, I can exclude the parent and the children with one variable, but I would prefer not to do that.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘excluding multple categories’ is closed to new replies.