Wordpress подкатегорії конкретної категории
<li class="active"><a href="/?cat=5">Руки</a></li>
<?php wp_list_categories( 'child_of=5&number=6&hide_empty=false&title_li='); ?>
<?php
$kat = 2;
$na_akran = '<ul class="filter-list filter-city-list list-inline l_tinynav1">' . "\n";
$dochernii_kategorii = get_categories('child_of=' . $kat . '&hide_empty=0');
foreach ($dochernii_kategorii as $dochernaya_kategoria) :
if ($kat == $dochernaya_kategoria->category_parent) :
$na_akran .= "\t" . '<li class="filter-city-list-item">
<a class="filter-city-list-link"
href="' .get_category_link($dochernaya_kategoria->cat_ID) . '
" title="' .$dochernaya_kategoria->category_description . '">';
$na_akran .= $dochernaya_kategoria->cat_name . '</a>';
$na_akran .= '</li>' . "\n";
endif;
endforeach;
$na_akran .= '</ul>' . "\n";
print $na_akran; ?>