How to Display Only Parent Category in your WordPress Post Loop
Thursday, 03 February 2011 12:01
When you use the_category() template function in your WordPress theme, it displays both the parent category and any child/subcategories under it. If you are creating a site that uses a lot of child categories to categorize the content, then this can become a problem because the_category code will create a lot of clutter. In this article, we will show you how to display only parent category in your WordPress post loop.
How to Display Only Parent Category in your WordPress Post Loop is a post from: WPBeginner which is not allowed to be copied on other sites.
Related posts:
Set as favorite
Bookmark
Email this
Hits: 560
