Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Preparation Style Taxonomy

for drink recipies, Shaken, etc…

if ( ! function_exists( 'preparation_style' ) ) {

// Register Custom Taxonomy
function preparation_style() {

	$labels = array(
		'name'                       => _x( 'Preparation Types', 'Taxonomy General Name', 'gustologist' ),
		'singular_name'              => _x( 'Preparation', 'Taxonomy Singular Name', 'gustologist' ),
		'menu_name'                  => __( 'Preparation', 'gustologist' ),
		'all_items'                  => __( 'All Prep Types', 'gustologist' ),
		'parent_item'                => __( 'Parent Type', 'gustologist' ),
		'parent_item_colon'          => __( 'Parent Prep Type:', 'gustologist' ),
		'new_item_name'              => __( 'New Prep Type', 'gustologist' ),
		'add_new_item'               => __( 'Add New Preparation', 'gustologist' ),
		'edit_item'                  => __( 'Edit Prep Type', 'gustologist' ),
		'update_item'                => __( 'Update Prep Type', 'gustologist' ),
		'view_item'                  => __( 'View Prep Type', 'gustologist' ),
		'separate_items_with_commas' => __( 'Separate types with commas', 'gustologist' ),
		'add_or_remove_items'        => __( 'Add or remove preparation types', 'gustologist' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'gustologist' ),
		'popular_items'              => __( 'Popular types', 'gustologist' ),
		'search_items'               => __( 'Search Preparation Types', 'gustologist' ),
		'not_found'                  => __( 'Not Found', 'gustologist' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => false,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'preparation', array( 'drink-recipes' ), $args );

}

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

}