grysom

Untitled

Apr 25th, 2011
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. if ( $hierarchical )
  2. $depth = $r['depth'];
  3. else
  4. $depth = -1; // Flat.
  5. foreach ( $categories as $key => $category ) {
  6. if ($category->term_id == 4 || $category->term_id == 10 || $category->term_id == 1 ) unset ($categories[ $key ]) ;
  7. }
  8. $output .= walk_category_tree( $categories, $depth, $r );
  9. }
  10.  
  11. if ( $title_li && 'list' == $style )
  12. $output .= '</ul></li>';
  13.  
  14. $output = apply_filters( 'wp_list_categories', $output, $args );
  15.  
  16. if ( $echo )
  17. echo $output;
  18. else
  19. return $output;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment