Works CPT Category Taxonomy
Custom taxonomy: category for Works CPT
// Register Custom Taxonomy function works_custom_category_tax() { $labels = array( 'name' => 'Categories', 'singular_name' => 'Category', 'menu_name' => 'Categories', 'all_items' => 'All Work Categories', 'parent_item' => 'Parent Work Category', 'parent_item_colon' => 'Parent Work Category:', 'new_item_name' => 'New Category', 'add_new_item' => 'Add New Category', 'edit_item' => 'Edit Category', 'update_item' => 'Update Category', 'separate_items_with_commas' => 'Separate categories with commas', 'search_items' => 'Search Categories', 'add_or_remove_items' => 'Add or remove categories', 'choose_from_most_used' => 'Choose from the most used categories', 'not_found' => 'Not Found', ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, ); register_taxonomy( 'category', array( 'work' ), $args ); } // Hook into the 'init' action add_action( 'init', 'works_custom_category_tax', 0 );