Divisions Taxonomy
Divisions Taxonomy for Employees Post Type
// Register Custom Taxonomy function division_taxonomy() { $labels = array( 'name' => _x( 'Divisions', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'Division', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Divisions', 'text_domain' ), 'all_items' => __( 'All Divisions', 'text_domain' ), 'parent_item' => __( 'Parent Division', 'text_domain' ), 'parent_item_colon' => __( 'Parent Division:', 'text_domain' ), 'new_item_name' => __( 'New Division Name', 'text_domain' ), 'add_new_item' => __( 'Add New Division', 'text_domain' ), 'edit_item' => __( 'Edit Division', 'text_domain' ), 'update_item' => __( 'Update Division', 'text_domain' ), 'separate_items_with_commas' => __( 'Separate divisions with commas', 'text_domain' ), 'search_items' => __( 'Search Divisions', 'text_domain' ), 'add_or_remove_items' => __( 'Add or remove divisions', 'text_domain' ), 'choose_from_most_used' => __( 'Choose from the most used divisions', 'text_domain' ), 'not_found' => __( 'Not Found', 'text_domain' ), ); $rewrite = array( 'slug' => 'division', 'with_front' => true, 'hierarchical' => true, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => true, 'query_var' => 'divisions', 'rewrite' => $rewrite, ); register_taxonomy( 'division', 'custom_post_type', $args ); } // Hook into the 'init' action add_action( 'init', 'division_taxonomy', 0 );