I'm using the following code to show the subcategories of a category within my archive.php page:
<?php if (is_category()) {
$this_category = get_category($cat);
if (get_category_children($this_category->cat_ID) != "") {
echo "<div id='catlist'><ul>";
wp_list_categories('orderby=name&hide_empty=0&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID);
echo "</ul></div>";
}
}?>
The code above returns the name of the category as a link, with the category description as the link title.
Can anyone show my how to show the category description within paragraph tags after the category link?
Thanks.