Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Forta Project Date Taxonomy

// Register Custom Taxonomy
function date_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Project Dates', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Project Date', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Project Date', 'text_domain' ),
		'all_items'                  => __( 'Project Dates', 'text_domain' ),
		'parent_item'                => __( 'Parent Project Date', 'text_domain' ),
		'parent_item_colon'          => __( 'Parent Project Date:', 'text_domain' ),
		'new_item_name'              => __( 'New Project Date Name', 'text_domain' ),
		'add_new_item'               => __( 'Add New Project Date', 'text_domain' ),
		'edit_item'                  => __( 'Edit Project Date', 'text_domain' ),
		'update_item'                => __( 'Update Project Date', 'text_domain' ),
		'view_item'                  => __( 'View Project Date', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separate project date with commas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Add or remove project dates', 'text_domain' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'text_domain' ),
		'popular_items'              => __( 'Popular Project Dates', 'text_domain' ),
		'search_items'               => __( 'Search Project Dates', 'text_domain' ),
		'not_found'                  => __( 'Not Found', 'text_domain' ),
		'no_terms'                   => __( 'No project dates', 'text_domain' ),
		'items_list'                 => __( 'Project Dates list', 'text_domain' ),
		'items_list_navigation'      => __( 'Project Dates list navigation', 'text_domain' ),
	);
	$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( 'project_date', array( 'project' ), $args );

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