Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Story Types

What type of story?

// Register Custom Taxonomy
function register_story_type() {

	$labels = array(
		'name'                       => _x( 'Story Types', 'Taxonomy General Name', 'properbear' ),
		'singular_name'              => _x( 'Story Type', 'Taxonomy Singular Name', 'properbear' ),
		'menu_name'                  => __( 'Story Types', 'properbear' ),
		'all_items'                  => __( 'All Types', 'properbear' ),
		'parent_item'                => __( 'Parent Type', 'properbear' ),
		'parent_item_colon'          => __( 'Parent Type:', 'properbear' ),
		'new_item_name'              => __( 'New Type Name', 'properbear' ),
		'add_new_item'               => __( 'Add New Type', 'properbear' ),
		'edit_item'                  => __( 'Edit Type', 'properbear' ),
		'update_item'                => __( 'Update Type', 'properbear' ),
		'view_item'                  => __( 'View Item', 'properbear' ),
		'separate_items_with_commas' => __( 'Separate types with commas', 'properbear' ),
		'add_or_remove_items'        => __( 'Add or remove types', 'properbear' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'properbear' ),
		'popular_items'              => __( 'Popular Types', 'properbear' ),
		'search_items'               => __( 'Search Types', 'properbear' ),
		'not_found'                  => __( 'Not Found', 'properbear' ),
	);
	$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_type', array( 'story' ), $args );

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