List hierarcichal categories with description?
I want to make a page which lists categories with descriptions. I want them to show indented subcategories.
No, I can’t use wp_list_categories becuase for some €%&€ reason they can’t show descriptions.
No, I can’t use get_categories because the hierarchical parameter doesn’t work.
So please don’t just redirect me to those pages in the codex because they don’t help.
I’ve thought about using several get_categories and foreach, but for some @#-€& reason theres no working way to get only the top level, parent categories. Guess nobody though about that when the child_of-paramater was created?
The only way I can think of now is getting a list with wp_list_categories(‘echo=0’) and then use some kind of regular expression to get the id or slug, then use a foreach and get_categories(‘child_of=$x’). But should it really be that ridicolous hard to get a useful list of categories and subcategories, all with description?
I have searched the forum but similar questions seems to gone unanswered or had solutions not appliable to my problem.
- The topic ‘List hierarcichal categories with description?’ is closed to new replies.