SHARE
TWEET

The code I used at the moment

a guest Feb 17th, 2014 186 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     )); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top