Display children categories only for a particular category
Round 2, hopefully rephrasing the question will bring an answer. I really need to do this, and am not getting anywhere 🙁
I want to list all children items for a category, when on category.php, *outside* the loop.
So, if I have
When the user clicks on a link to “Clowns” , it will bring category.php, showing the “clowns” category. Then above the loop, I want to have a list that includes “bozo” and “patof”.
If someone goes to “cars”, it displays nothing.
Now, I *could* do this the long way, and create various categoryx.php for each category on the site, and then manually insert a list of children categories. While this might work, it is a LOT of work, and not very flexible, particularly if I’m doing the site for someone else that isn’t savvy enough to create new categoryx.php each time they add categories.
I’ve scoured the Codex and haven’t found a solution that works.
- The topic ‘Display children categories only for a particular category’ is closed to new replies.