Live Blogging Event Custom taxonomy
// Register Custom Taxonomy
function live_blogging_ctax() {
$labels = array(
'name' => _x( 'Events', 'Taxonomy General Name', 'gwp' ),
'singular_name' => _x( 'Event', 'Taxonomy Singular Name', 'gwp' ),
'menu_name' => __( 'Events', 'gwp' ),
'all_items' => __( 'All Events', 'gwp' ),
'parent_item' => __( '', 'gwp' ),
'parent_item_colon' => __( '', 'gwp' ),
'new_item_name' => __( 'New Event', 'gwp' ),
'add_new_item' => __( 'Add New Event', 'gwp' ),
'edit_item' => __( 'Edit Event', 'gwp' ),
'update_item' => __( 'Update Event', 'gwp' ),
'view_item' => __( 'View Event', 'gwp' ),
'separate_items_with_commas' => __( 'Separate Events with commas', 'gwp' ),
'add_or_remove_items' => __( 'Add or remove Event', 'gwp' ),
'choose_from_most_used' => __( 'Choose from the most used', 'gwp' ),
'popular_items' => __( 'Popular Events', 'gwp' ),
'search_items' => __( 'Search Events', 'gwp' ),
'not_found' => __( 'Not Found', 'gwp' ),
'no_terms' => __( 'No Events', 'gwp' ),
'items_list' => __( 'Events list', 'gwp' ),
'items_list_navigation' => __( 'Events list navigation', 'gwp' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => false,
'show_tagcloud' => false,
'rewrite' => false,
);
register_taxonomy( 'gwp_lbe', array( 'gwp_lbe' ), $args );
}
add_action( 'init', 'live_blogging_ctax', 0 );