Is it possible to reuse the "category" slug for a custom post type and still have the categories editable within the CPT menu?
With a CPT of "work" I'd like to be able to have URLS like this domain.com/work/category
I've tried this code but the taxonomy just doesn't show up in the CPT menu:
$args = array(
'labels' => array(
'name' => __( 'Work Projects' ),
'singular_name' => __( 'Work Project' ),
'add_new_item' => __( 'Add New Work Project' ),
'edit_item' => __( 'Edit Work Project' )
),
'public' => true,
'has_archive' => true,
'publicly queryable' => true,
'menu_icon' => 'dashicons-lightbulb',
'show_in_nav_menus' => true
);
register_post_type( 'work', $args );
$args = array(
'hierarchical' => true,
'labels' => array('name' => 'Work Categories', 'singular_name' => 'Work Category'),
'query_var' => true,
'show_ui' => true,
'show_in_menu' => true,
'rewrite' => array(
'slug' => 'type',
'with_front' => true
)
);
register_taxonomy( 'category', 'work', $args );