1
2
3
4
5
6
7
8
9
10
11 $echo = '<ul>' . "n";
$childcats = get_categories('child_of=' . $cat . '&hide_empty=1');
foreach ($childcats as $childcat) {
if (1 == $childcat->category_parent) {
$echo .= "t" . '<li><a href="' . get_category_link($childcat->cat_ID).'" title="' . $childcat->category_description . '">';
$echo .= $childcat->cat_name . '</a>';
$echo .= '</li>' . "n";
}
}
$echo .= '</ul>' . "n";
echo $echo;
wp_nav_menu()
December 8, 2012/ Updated: December 8, 2012