ifacethoughts

WordPress Parent Categories And Using the_category

I am frequently asked by some WordPress users if they should categorize both in the parent and the child categories. Lot of people do it so that the parent category gets listed in the the_category() call for that post.

In my opinion, there is no point in categorizing in the parent category if it is aimed for the child category. WordPress already shows the child category posts in the parent’s category archive. As for listing the parent category for a post, you can explicitly tell it to do so. the_category(', ', 'multiple') will display the parent category for that post, even if the post is not explicitly categorized in it.

And if you are thinking that there is no harm in categorizing in the parent categories, there might be unintended side-effects.

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.

freshthoughts

contactme

Abhijit Nadgouda
iface Consulting
India
+91 9819820312
My bookmarks

badgesand...

This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.