wpexplorer

Exclude Staff Cats

Oct 20th, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1.  <?php
  2.                 $taxonomy     = 'staff_departments';
  3.                 $orderby      = 'name';
  4.                 $show_count   = 0;      // 1 for yes, 0 for no
  5.                 $pad_counts   = 0;      // 1 for yes, 0 for no
  6.                 $hierarchical = 1;      // 1 for yes, 0 for no
  7.                 $title        = '';
  8.                 $args = array(
  9.                 'taxonomy'     => $taxonomy,
  10.                 'orderby'      => $orderby,
  11.                 'show_count'   => $show_count,
  12.                 'pad_counts'   => $pad_counts,
  13.                 'hierarchical' => $hierarchical,
  14.                 'title_li'     => $title,
  15.         'exclude' => '1'  // exclude categories
  16.         );
  17.         ?>
  18.  
Advertisement
Add Comment
Please, Sign In to add comment