Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Author Team taxonomy

Taxonomy for authors who work together

// Register Custom Taxonomy
function register_author_team() {

	$labels = array(
		'name'                       => _x( 'Author Teams', 'Taxonomy General Name', 'author-team' ),
		'singular_name'              => _x( 'Author Team', 'Taxonomy Singular Name', 'author-team' ),
		'menu_name'                  => __( 'Author Team', 'author-team' ),
		'all_items'                  => __( 'All Author Teams', 'author-team' ),
		'parent_item'                => __( 'Parent Team', 'author-team' ),
		'parent_item_colon'          => __( 'Parent Team:', 'author-team' ),
		'new_item_name'              => __( 'New Team Name', 'author-team' ),
		'add_new_item'               => __( 'Add New Author Team', 'author-team' ),
		'edit_item'                  => __( 'Edit Team', 'author-team' ),
		'update_item'                => __( 'Update Team', 'author-team' ),
		'view_item'                  => __( 'View Team', 'author-team' ),
		'separate_items_with_commas' => __( 'Separate teams with commas', 'author-team' ),
		'add_or_remove_items'        => __( 'Add or Remove Teams', 'author-team' ),
		'choose_from_most_used'      => __( 'Choose from the most used teams', 'author-team' ),
		'popular_items'              => __( 'Popular Teams', 'author-team' ),
		'search_items'               => __( 'Search Author Teams', 'author-team' ),
		'not_found'                  => __( 'Team not found', 'author-team' ),
		'no_terms'                   => __( 'No teams', 'author-team' ),
		'items_list'                 => __( 'Teams list', 'author-team' ),
		'items_list_navigation'      => __( 'Teams list navigation', 'author-team' ),
	);
	$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( 'author_team', array( 'author_profile' ), $args );

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