SubCategory

$taxonomy, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); ?>
    category_parent == 0) { $category_id = $cat->term_id; echo '
  • '. $cat->name .' ('. $cat->count .')'; $args2 = array( 'taxonomy' => $taxonomy, 'child_of' => 0, 'parent' => $category_id, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); $sub_cats = get_categories( $args2 ); if($sub_cats) { echo '
      '; foreach($sub_cats as $sub_category) { $category_sub_id = $sub_category->term_id; echo '
    • '. $sub_category->name .' ('. $sub_category->count .')'; $args3 = array( 'taxonomy' => $taxonomy, 'child_of' => 0, 'parent' => $category_sub_id, 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'title_li' => $title, 'hide_empty' => $empty ); $sub_cats_sub_cats = get_categories( $args3 ); if($sub_cats_sub_cats) { echo ''; } echo '
    • '; } echo '
    '; } echo '
  • '; } } ?>