Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

issue

// Register Custom Taxonomy
function schon_register_issue_tax() {

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

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