Service Types (tax)
// Register Custom Taxonomy
function service_type() {
$labels = array(
'name' => _x( 'Service Types', 'Taxonomy General Name', 'mdg' ),
'singular_name' => _x( 'Service Type', 'Taxonomy Singular Name', 'mdg' ),
'menu_name' => __( 'Service Types', 'mdg' ),
'all_items' => __( 'All Service Types', 'mdg' ),
'parent_item' => __( 'Parent IteService Type', 'mdg' ),
'parent_item_colon' => __( 'Parent Service Type:', 'mdg' ),
'new_item_name' => __( 'New Service Type', 'mdg' ),
'add_new_item' => __( 'Add New Service Type', 'mdg' ),
'edit_item' => __( 'Edit Service Type', 'mdg' ),
'update_item' => __( 'Update Service Type', 'mdg' ),
'view_item' => __( 'View Service Type', 'mdg' ),
'separate_items_with_commas' => __( 'Separate Service Types with commas', 'mdg' ),
'add_or_remove_items' => __( 'Add or remove Service Type', 'mdg' ),
'choose_from_most_used' => __( 'Choose from the most used', 'mdg' ),
'popular_items' => __( 'Popular Items', 'mdg' ),
'search_items' => __( 'Search Items', 'mdg' ),
'not_found' => __( 'Not Found', 'mdg' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'service_type', array( 'services' ), $args );
}
add_action( 'init', 'service_type', 0 );