I understand how to create a list of sub-categories and get each cat’s description used for the title attribute of the link…
what I’d like to do is use the same category description in a span after the name of the category is written… basically, if I use this:
<ul> <?php wp_list_categories('title_li=&orderby=name&use_desc_for_title=1&child_of=8'); ?> </ul>
I get something like:
where each is a bulleted list item. OK… and hovering over each displays a tooltip with the text from the cat desc (too bad you cannot have line breaks in these any more!)
What I want is this:
blah, blah, blah for cat A
blah, blah, blah for cat B
There’s no way to interject an echo for each list item using the template tag wp_list_categories();
Ideas, anyone? Much appreciated!!
- The topic ‘How to display category desc in list of sub cats’ is closed to new replies.