Advertisement
Guest User

The code I used at the moment

a guest
Feb 17th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php $current_term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?>
  2. <?php $cats = wp_list_categories( array(
  3. 'orderby' => 'id',
  4. 'child_of' => $current_term->term_id,
  5. 'taxonomy' => $current_term->taxonomy,
  6. 'hide_empty' => 0,
  7. 'hierarchical' => true,
  8. 'depth' => 2,
  9. 'title_li' => ''
  10. )); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement