Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Waterfall Tags

// Register Custom Taxonomy
function register_waterfall_tags() {

	$labels = array(
		'name'                       => _x( 'Waterfall Tags', 'Taxonomy General Name', 'world_of_waterfalls' ),
		'singular_name'              => _x( 'Waterfall Tag', 'Taxonomy Singular Name', 'world_of_waterfalls' ),
		'menu_name'                  => __( 'Tags', 'world_of_waterfalls' ),
		'all_items'                  => __( 'All Waterfall Tags', 'world_of_waterfalls' ),
		'parent_item'                => __( 'Parent Waterfall Tag', 'world_of_waterfalls' ),
		'parent_item_colon'          => __( 'Parent Waterfall Tag:', 'world_of_waterfalls' ),
		'new_item_name'              => __( 'New Waterfall Tag Name', 'world_of_waterfalls' ),
		'add_new_item'               => __( 'Add New Waterfall Tag', 'world_of_waterfalls' ),
		'edit_item'                  => __( 'Edit Waterfall Tag', 'world_of_waterfalls' ),
		'update_item'                => __( 'Update Waterfall Tag', 'world_of_waterfalls' ),
		'view_item'                  => __( 'View Waterfall Tag', 'world_of_waterfalls' ),
		'separate_items_with_commas' => __( 'Separate tags with commas', 'world_of_waterfalls' ),
		'add_or_remove_items'        => __( 'Add or remove tags', 'world_of_waterfalls' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'world_of_waterfalls' ),
		'popular_items'              => __( 'Popular Waterfall Tags', 'world_of_waterfalls' ),
		'search_items'               => __( 'Search Waterfall Tags', 'world_of_waterfalls' ),
		'not_found'                  => __( 'Not Found', 'world_of_waterfalls' ),
		'no_terms'                   => __( 'No Waterfall Tags', 'world_of_waterfalls' ),
		'items_list'                 => __( 'Waterfall tags list', 'world_of_waterfalls' ),
		'items_list_navigation'      => __( 'Waterfall tags list navigation', 'world_of_waterfalls' ),
	);
	$rewrite = array(
		'slug'                       => 'waterfall-tag',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'waterfall_tags', array( 'waterfalls' ), $args );

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