exclude parent categories
-
Hi!
I found questions on this topic before – but all of them remained unanswered …
I’m reposting this as this covers exactly my question:
How can I exclude parent categories?
I have most of my posts in multiple child categories (never within the parent category). Those child categories belong to different parent categories.
So with ‘show in all categories’ enabled: if I have 3 child categories assigned and all of them are in different parents it causes the post to appear 6 times in the site map instead of 3. It can be even worse as I have multiple layers of hierarchy in some categories so a child of a parent can in turn be the parent of a child in a 3rd level down, etc, further causing unnecessary duplication in the sitemap plugin.
How can I display only the posts in their actual assigned child category and not within their parent category?
Thanks!
Martina
- The topic ‘exclude parent categories’ is closed to new replies.