// Register Custom Taxonomy function theme_type_tax() { $labels = array( 'name' => _x( 'Types', 'Taxonomy General Name', 'the_code_block' ), 'singular_name' => _x( 'Type', 'Taxonomy Singular Name', 'the_code_block' ), 'menu_name' => __( 'Type', 'the_code_block' ), 'all_items' => __( 'All Types', 'the_code_block' ), 'parent_item' => __( 'Parent Type', 'the_code_block' ), 'parent_item_colon' => __( 'Parent Type:', 'the_code_block' ), 'new_item_name' => __( 'New Type Name', 'the_code_block' ), 'add_new_item' => __( 'Add New Type', 'the_code_block' ), 'edit_item' => __( 'Edit Type', 'the_code_block' ), 'update_item' => __( 'Update Type', 'the_code_block' ), 'view_item' => __( 'View Type', 'the_code_block' ), 'separate_items_with_commas' => __( 'Separate types with commas', 'the_code_block' ), 'add_or_remove_items' => __( 'Add or remove types', 'the_code_block' ), 'choose_from_most_used' => __( 'Choose from the most used', 'the_code_block' ), 'popular_items' => __( 'Popular types', 'the_code_block' ), 'search_items' => __( 'Search types', 'the_code_block' ), 'not_found' => __( 'Not Found', 'the_code_block' ), 'no_terms' => __( 'No items', 'the_code_block' ), 'items_list' => __( 'Items list', 'the_code_block' ), 'items_list_navigation' => __( 'Items list navigation', 'the_code_block' ), ); $rewrite = array( 'slug' => 'type', '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, 'rewrite' => $rewrite, ); register_taxonomy( 'theme_type', array( 'tcb_theme' ), $args ); } add_action( 'init', 'theme_type_tax', 0 );