Advertisement
olie480

Stackoverflow - Wordpress Rewrite

Nov 8th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1.     <?php
  2.     add_action('init', 'cptui_register_my_taxes_work_type');
  3.  
  4.     function cptui_register_my_taxes_work_type() {
  5.         register_taxonomy('work-type', array (0 => 'work',),
  6.                 array(
  7.                     'hierarchical' => true,
  8.                     'label' => 'Categories',
  9.                     'show_ui' => true,
  10.                     'query_var' => true,
  11.                     'show_admin_column' => false,
  12.                     'labels' => array (
  13.                     'search_items' => 'Category',
  14.                     'popular_items' => '',
  15.                     'all_items' => '',
  16.                     'parent_item' => '',
  17.                     'parent_item_colon' => '',
  18.                     'edit_item' => '',
  19.                     'update_item' => '',
  20.                     'add_new_item' => '',
  21.                     'new_item_name' => '',
  22.                     'separate_items_with_commas' => '',
  23.                     'add_or_remove_items' => '',
  24.                     'choose_from_most_used' => '',
  25.                     'rewrite' => array(
  26.                         'with_front' => false
  27.                     ),
  28.                 )
  29.             )
  30.         );
  31.     }
  32.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement