excluding subcategories
-
I’m trying to figure out how to exclude subcategories of a specific category from showing up in the loop.
So for example, i have categories 1,2,3. They each have there own subcategories a,b,c. I to exclude category 2 from being displayed and all its subcategories (a,b,c) from showing up. How would i do this.
If anyone can point me in the right direction, that would be great.<?php if (in_category('15') && is_home() ) continue; ?>
So far i have only used this function to exclude, but it doesn’t exclude its subcategories.
I was thinking query_posts(), but i’m not sure.
thanks in advance,
ch4sethe5un
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘excluding subcategories’ is closed to new replies.