Clients Taxonomy
Add a custom taxonomy to the custom Post Type “Case”
// Register Custom Taxonomy function ctax_client() { $labels = array( 'name' => _x( 'Clients', 'Taxonomy General Name', 'unfabrik' ), 'singular_name' => _x( 'Client', 'Taxonomy Singular Name', 'unfabrik' ), 'menu_name' => __( 'Clients', 'unfabrik' ), 'all_items' => __( 'All Items', 'unfabrik' ), 'parent_item' => __( 'Parent Client', 'unfabrik' ), 'parent_item_colon' => __( 'Parent Client:', 'unfabrik' ), 'new_item_name' => __( 'New Client Name', 'unfabrik' ), 'add_new_item' => __( 'Add New Client', 'unfabrik' ), 'edit_item' => __( 'Edit Client', 'unfabrik' ), 'update_item' => __( 'Update Client', 'unfabrik' ), 'view_item' => __( 'View Client', 'unfabrik' ), 'separate_items_with_commas' => __( 'Separate Clients with commas', 'unfabrik' ), 'add_or_remove_items' => __( 'Add or remove Clients', 'unfabrik' ), 'choose_from_most_used' => __( 'Choose from the most used', 'unfabrik' ), 'popular_items' => __( 'Popular Clients', 'unfabrik' ), 'search_items' => __( 'Search Clients', 'unfabrik' ), 'not_found' => __( 'Not Found', 'unfabrik' ), 'no_terms' => __( 'No items', 'unfabrik' ), 'items_list' => __( 'Clients list', 'unfabrik' ), 'items_list_navigation' => __( 'Clients list navigation', 'unfabrik' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, ); register_taxonomy( 'client', array( 'case' ), $args ); } add_action( 'init', 'ctax_client', 0 );