Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Publication Author (tags)

// Register Custom Taxonomy
function publication_author() {

	$labels = array(
		'name'                       => _x( 'Publication Authors', 'Taxonomy General Name', 'eggcup-library-catalogue' ),
		'singular_name'              => _x( 'Publication Author', 'Taxonomy Singular Name', 'eggcup-library-catalogue' ),
		'menu_name'                  => __( 'Publication Author', 'eggcup-library-catalogue' ),
		'all_items'                  => __( 'All Publication Authors', 'eggcup-library-catalogue' ),
		'parent_item'                => __( 'Parent Publication Author', 'eggcup-library-catalogue' ),
		'parent_item_colon'          => __( 'Parent Publication Author:', 'eggcup-library-catalogue' ),
		'new_item_name'              => __( 'New Publication Author', 'eggcup-library-catalogue' ),
		'add_new_item'               => __( 'Add New Publication Author', 'eggcup-library-catalogue' ),
		'edit_item'                  => __( 'Edit Publication Author', 'eggcup-library-catalogue' ),
		'update_item'                => __( 'Update Publication Author', 'eggcup-library-catalogue' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'eggcup-library-catalogue' ),
		'search_items'               => __( 'Search Publication Authors', 'eggcup-library-catalogue' ),
		'add_or_remove_items'        => __( 'Add or remove Publication Authors', 'eggcup-library-catalogue' ),
		'choose_from_most_used'      => __( 'Choose from the most used items', 'eggcup-library-catalogue' ),
		'not_found'                  => __( 'Not Found', 'eggcup-library-catalogue' ),
	);
	$rewrite = array(
		'slug'                       => 'publication_author',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => true,
		'query_var'                  => 'publication_author',
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'publication_author', array( 'publication' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'publication_author', 0 );