Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Destinations

if ( ! function_exists( 'destination' ) ) {

// Register Custom Taxonomy
function destination() {

	$labels = array(
		'name'                       => _x( 'Destinos', 'Taxonomy General Name', 'gv-admin' ),
		'singular_name'              => _x( 'Destino', 'Taxonomy Singular Name', 'gv-admin' ),
		'menu_name'                  => __( 'Destinos', 'gv-admin' ),
		'all_items'                  => __( 'Todos los Destinos', 'gv-admin' ),
		'parent_item'                => __( 'Destino Padre', 'gv-admin' ),
		'parent_item_colon'          => __( 'Destino Padre:', 'gv-admin' ),
		'new_item_name'              => __( 'Nuevo Destino', 'gv-admin' ),
		'add_new_item'               => __( 'Añadir Nuevo Destino', 'gv-admin' ),
		'edit_item'                  => __( 'Editar Destino', 'gv-admin' ),
		'update_item'                => __( 'Actualizar Destino', 'gv-admin' ),
		'view_item'                  => __( 'Ver Destino', 'gv-admin' ),
		'separate_items_with_commas' => __( 'Separar Destinos con comas', 'gv-admin' ),
		'add_or_remove_items'        => __( 'Añadir o Eliminar Destinos', 'gv-admin' ),
		'choose_from_most_used'      => __( 'Seleccionar los más usados', 'gv-admin' ),
		'popular_items'              => __( 'Destinos Populares', 'gv-admin' ),
		'search_items'               => __( 'Buscar Destinos', 'gv-admin' ),
		'not_found'                  => __( 'No encontrados', 'gv-admin' ),
	);
	$rewrite = array(
		'slug'                       => 'destinos',
		'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( 'destination', array( 'voyage' ), $args );

}

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

}