Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Custom Story Category Taxonomy

// Register Custom Taxonomy
function custom_story_category_taxonomy() {

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

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