Advertisement
sabbirshouvo

Fixed Taxonomy Register Code

Nov 20th, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**** Creating Taxonomy *****////
  2.  
  3.  
  4. function health_test_taxonomy() {
  5.     register_taxonomy('health_category',  'diagnosis-tests',                
  6.         array(
  7.             'add_new_items'=>'Add new Group',
  8.             'parent_items'=>'Parent Group',
  9.             'hierarchical'          => true,
  10.             'label'                 => 'Test Group',
  11.             'query_var'             => true,
  12.             'show_admin_column' => true,
  13.             'has_archive'       => true,
  14.             'rewrite'               => array(
  15.                 'slug'              => 'test-group',
  16.                 'with_front'        => false
  17.                 )
  18.             )
  19.     );
  20. }
  21. add_action( 'init', 'health_test_taxonomy');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement