Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Faculty Mentions taxonomy

// Register Custom Taxonomy
function funews_facmen_custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Faculty Mentions', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Faculty Mention', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Faculty Mention', 'text_domain' ),
		'all_items'                  => __( 'All faculty mentions', 'text_domain' ),
		'parent_item'                => __( 'Parent Item', 'text_domain' ),
		'parent_item_colon'          => __( 'Parent Item:', 'text_domain' ),
		'new_item_name'              => __( 'New faculty mention', 'text_domain' ),
		'add_new_item'               => __( 'Add New faculty mention', 'text_domain' ),
		'edit_item'                  => __( 'Edit faculty mention', 'text_domain' ),
		'update_item'                => __( 'Update faculty mention', 'text_domain' ),
		'view_item'                  => __( 'View faculty mention', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separate faculty with commas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Add or remove faculty mentions', 'text_domain' ),
		'choose_from_most_used'      => __( 'Choose from the most used faculty', 'text_domain' ),
		'popular_items'              => __( 'Popular faculty mentions', 'text_domain' ),
		'search_items'               => __( 'Search faculty mentions', 'text_domain' ),
		'not_found'                  => __( 'Not Found', 'text_domain' ),
		'no_terms'                   => __( 'No mentions', 'text_domain' ),
		'items_list'                 => __( 'Faculty mentions list', 'text_domain' ),
		'items_list_navigation'      => __( 'Faculty mentions list navigation', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                       => 'faculty-mentions',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => false,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'facultymention', array( 'post', 'facultyexpert' ), $args );

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