Excluding child categories
I have a blog that aggregates news and I am looking at including a new category for the company each news item is about.
This will involve about 50 – 60 company categories and in order to keep my category listing managable I wanted to organize them in a main “Companies” category and then exclude the Companies category.
Problem is that wp_list_categories will only exclude a parent but will still display the child categories (which seems nonsensical…)
Is there a way to exclude the child categories of a parent or do I need to rewrite wp_list_categories?
BTW, I have close to 40 categories that I am displaying so writing an include param is not an option.
- The topic ‘Excluding child categories’ is closed to new replies.