How to create categories for custom posts
-
I have created custom post type for my wordpress website where i need category option for custom post type. I have used
register_post_type('specialissues',array( 'supports'=>array('title','editor','thumbnail','excerpt'), 'has_archive'=>true, 'public'=>true, 'labels'=>array( 'name'=>'Special Issues', 'add_new_item'=>'Add New Special Issue', 'edit_item'=>'Edit Special Issue', 'all_items'=>'All Special Issue', 'singular_name'=>'Special Issue' ), 'menu_icon'=>'dashicons-megaphone', 'taxonomies'=> array( 'category' ) ));
Using this category option is appear in my custom post type but shows all others default post category also. I want separate category option for my new custom post type. Is there any way to achieve this.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to create categories for custom posts’ is closed to new replies.