Event Types
// Register Custom Taxonomy
function event_type_taxonomy() {
$labels = array(
'name' => 'Event Types',
'singular_name' => 'Event Type',
'menu_name' => 'Event Types',
'all_items' => 'All Event Types',
'parent_item' => 'Parent Event Type',
'parent_item_colon' => 'Parent Item:',
'new_item_name' => 'New Event Type',
'add_new_item' => 'Add New Event Type',
'edit_item' => 'Edit Event Type',
'update_item' => 'Update Event Type',
'view_item' => 'View Event Type',
'separate_items_with_commas' => 'Separate items with commas',
'add_or_remove_items' => 'Add or remove items',
'choose_from_most_used' => 'Choose from the most used',
'popular_items' => 'Popular Event Types',
'search_items' => 'Search Event Types',
'not_found' => 'Not Found',
);
$rewrite = array(
'slug' => 'event-type',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
'rewrite' => $rewrite,
);
register_taxonomy( 'event_type', array( 'events' ), $args );
}
add_action( 'init', 'event_type_taxonomy', 0 );