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