【個人用メモ】
<?php $categories = get_terms( 'category', array( 'orderby' => 'count', 'hide_empty' => 0, 'child_of' => get_query_var('cat'), ) ); foreach($categories as $value): ?> <p><a href="<?php echo get_category_link($value->term_id); ?>"><?php echo $value->name;?></a>(<?php echo $value->count; ?>)</p> <?php endforeach;
child_of→parent 直下だけ
参考
http://webcake.no003.info/webdesign/get-terms.html