Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

GSAB Committees

// Register Custom Taxonomy
function gsab_committees() {

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

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