Display categories in hierarchical order
-
Hi,
I’ve been searching for weeks all over the internet to find a solution to my question. I tried plugins, snippets, functions… everything I found. But I don’t know if I messed up somewhere and didn’t understand how to use some of them or if they simply don’t work.
So here is my issue.
I have many categories, and each of them has a child category (I don’t go deeper, I use tags).
On my archive pages and posts, I get the terms, and I’d like to display them in hierarchical order because right now, for example, if I go to, let’s say, Films > Avengers [ redundant link removed ], it displays “Avengers, Films” and I want “Films, Avengers”, Films being the parent category, Avengers being the child category.Can someone help me achieve that?
It has to be dynamic since the archive pages are created automatically or at least I could list the parent categories but not the child categories, there are too many of them.
Thank you!- This topic was modified 4 years, 7 months ago by .
- This topic was modified 4 years, 7 months ago by .
- This topic was modified 4 years, 7 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘Display categories in hierarchical order’ is closed to new replies.