Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $current_term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
- <?php $cats = wp_list_categories( array(
- 'orderby' => 'id',
- 'child_of' => $current_term->term_id,
- 'taxonomy' => $current_term->taxonomy,
- 'hide_empty' => 0,
- 'hierarchical' => true,
- 'depth' => 2,
- 'title_li' => ''
- )); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement