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