我正在使用以下代码显示存档中某个类别的子类别。php页面:
<?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>";
}
}?>
上面的代码将类别名称作为链接返回,类别描述作为链接标题。有人能告诉我如何在类别链接后的段落标记中显示类别描述吗?
谢谢