Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Listing Tags

// Register Custom Taxonomy
function loca_listing_tags() {

	$labels = array(
		'name'                       => _x( 'Listing Tags', 'Taxonomy General Name', 'loca' ),
		'singular_name'              => _x( 'Listing Tag', 'Taxonomy Singular Name', 'loca' ),
		'menu_name'                  => __( 'Listing Tags', 'loca' ),
		'all_items'                  => __( 'All Tags', 'loca' ),
		'parent_item'                => __( 'Parent Tag', 'loca' ),
		'parent_item_colon'          => __( 'Parent Tag:', 'loca' ),
		'new_item_name'              => __( 'New TagName', 'loca' ),
		'add_new_item'               => __( 'Add New Tag', 'loca' ),
		'edit_item'                  => __( 'Edit Tag', 'loca' ),
		'update_item'                => __( 'Update Tag', 'loca' ),
		'view_item'                  => __( 'View Tag', 'loca' ),
		'separate_items_with_commas' => __( 'Separate tags with commas', 'loca' ),
		'add_or_remove_items'        => __( 'Add or remove tags', 'loca' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'loca' ),
		'popular_items'              => __( 'Popular Tags', 'loca' ),
		'search_items'               => __( 'Search Tags', 'loca' ),
		'not_found'                  => __( 'Not Found', 'loca' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'loca_listing_tags', array( 'loca_listings' ), $args );

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