Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Project Type

if ( ! function_exists( 'project_cat' ) ) {

// Register Custom Taxonomy
function project_cat() {

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

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

}