Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

vf authors

// Register Custom Taxonomy
function vf_publication_author_tax() {

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

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