Guest User

piklist tax code

a guest
Jun 13th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.55 KB | None | 0 0
  1. add_filter('piklist_taxonomies', 'fw_course_name');
  2.   function fw_course_name($taxonomies)
  3.   {
  4.     $taxonomies[] = array(
  5.       'post_type' => 'course_cpt'
  6.       ,'name' => 'course_names'
  7.       ,'show_admin_column' => true
  8.       ,'configuration' => array(
  9.         'hierarchical' => true
  10.         ,'labels' => piklist('taxonomy_labels', 'Courses')
  11.         ,'hide_meta_box' => true
  12.         ,'show_ui' => true
  13.         ,'query_var' => true
  14.         ,'rewrite' => array(
  15.           'slug' => 'courses'
  16.         )
  17.       )
  18.     );
  19.   return $taxonomies;
  20.   }
Advertisement
Add Comment
Please, Sign In to add comment