One would think that returning categories using wordpress functions would automatically display them in their heirarchy? Ive noticed that categories dont necessarily do this, so I am trying to find a way to make sure they are returned correctly.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
There is number of functions that deal with categories. Some are meant to be used with other code and mostly deal with category objects, some are meant for displaying on front-end and outputting HTML.
|
|||||
|
|
You could use get_categories with argument (child_of= 10, hierarchical=1) I have done it and it traverses the categories tree starting from the category 10. |
|||
|
|