Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Zonas

if ( ! function_exists( 'zone' ) ) {

// Register Custom Taxonomy
function zone() {

	$labels = array(
		'name'                       => _x( 'Zonas', 'Taxonomy General Name', 'gv-admin' ),
		'singular_name'              => _x( 'Zona', 'Taxonomy Singular Name', 'gv-admin' ),
		'menu_name'                  => __( 'Zonas', 'gv-admin' ),
		'all_items'                  => __( 'Todas las Zonas', 'gv-admin' ),
		'parent_item'                => __( 'Zona padre', 'gv-admin' ),
		'parent_item_colon'          => __( 'Zona Padre:', 'gv-admin' ),
		'new_item_name'              => __( 'Nueva Zona', 'gv-admin' ),
		'add_new_item'               => __( 'Añadir Nueva Zona', 'gv-admin' ),
		'edit_item'                  => __( 'Editar Zona', 'gv-admin' ),
		'update_item'                => __( 'Actualizar Zona', 'gv-admin' ),
		'view_item'                  => __( 'Ver Zona', 'gv-admin' ),
		'separate_items_with_commas' => __( 'Separar Zonas con comas', 'gv-admin' ),
		'add_or_remove_items'        => __( 'Añadir o Eliminar Zonas', 'gv-admin' ),
		'choose_from_most_used'      => __( 'Seleccionar las más usadas', 'gv-admin' ),
		'popular_items'              => __( 'Zonas Populares', 'gv-admin' ),
		'search_items'               => __( 'Buscar Zonas', 'gv-admin' ),
		'not_found'                  => __( 'No encontradas', 'gv-admin' ),
	);
	$rewrite = array(
		'slug'                       => 'zona',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'zone', array( 'voyage' ), $args );

}

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

}