Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

TEDx Types taxonomy

// Register Custom Taxonomy
function tedxtype() {

	$labels = array(
		'name'                       => _x( 'TEDx Types', 'Taxonomy General Name', 'tedxf' ),
		'singular_name'              => _x( 'TEDx Type', 'Taxonomy Singular Name', 'tedxf' ),
		'menu_name'                  => __( 'TEDx Type', 'tedxf' ),
		'all_items'                  => __( 'TEDx Types', 'tedxf' ),
		'parent_item'                => __( 'Parent Type', 'tedxf' ),
		'parent_item_colon'          => __( 'Parent Type:', 'tedxf' ),
		'new_item_name'              => __( 'New Type Name', 'tedxf' ),
		'add_new_item'               => __( 'Add New Type', 'tedxf' ),
		'edit_item'                  => __( 'Edit Type', 'tedxf' ),
		'update_item'                => __( 'Update Type', 'tedxf' ),
		'view_item'                  => __( 'View Type', 'tedxf' ),
		'separate_items_with_commas' => __( 'Separate types with commas', 'tedxf' ),
		'add_or_remove_items'        => __( 'Add or remove types', 'tedxf' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'tedxf' ),
		'popular_items'              => __( 'Popular Types', 'tedxf' ),
		'search_items'               => __( 'Search Types', 'tedxf' ),
		'not_found'                  => __( 'Not Found', 'tedxf' ),
		'no_terms'                   => __( 'No Types', 'tedxf' ),
		'items_list'                 => __( 'Types list', 'tedxf' ),
		'items_list_navigation'      => __( 'Types list navigation', 'tedxf' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'tedxtype', array( 'timeline' ), $args );

}
add_action( 'init', 'tedxtype', 0 );