Advertisement
Guest User

Untitled

a guest
Oct 25th, 2010
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. <?php if (is_tax()) {
  2.   $this_term = get_term();
  3.   if (get_term_children($this_term->term_ID) != "") {
  4.     echo "<h2>Subcategories</h2>";
  5.     wp_list_categories( array (
  6.         'title_li' => '',
  7.         'depth' => '1',
  8.         'child_of' => '.$this_term->term_ID'
  9.     ));
  10.   }
  11. } else {
  12. wp_list_categories( array(
  13.     'taxonomy'  => 'compliance_categories',
  14.     'title_li'  => '',
  15.     'depth'     => '1'
  16.     ));
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement