Displaying sub categories
-
Hey!
I’ve a problem with displaying the sub categories of posts on archive page, and couldn’t find a definitive answer on forums and other WP related websites. Here is the problem:
Here is a rough view of my category system- Category A
- Sub Category A-1
- Sub Category A-2
- Sub Category A-3
- Category B
- Sub Category B-1
- Sub Category B-2
and so on.
For instance, a visitor is viewing the archive page of “Category A” and all the latest posts are listed in a chronological order. The posts here also have sub categories. Some of them have one sub category, let’s say “Sub Category A-1”, whereas others have more than one sub category, e.g. “Sub Category A-2” and “Sub Category A-3”.
What I want to do display these sub categories without linking before the title of post. Sometimes I need to display only one sub category but there are some instances where I have to display all the sub categories.
Does anyone have an idea how I could accomplish this?
Thanks in advance.
- The topic ‘Displaying sub categories’ is closed to new replies.