Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Rutas

if ( ! function_exists( 'custom_taxonomy' ) ) {

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Rutas', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Ruta', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Ruta', 'text_domain' ),
		'all_items'                  => __( 'Todas las Rutas', 'text_domain' ),
		'parent_item'                => __( 'Ruta Padre', 'text_domain' ),
		'parent_item_colon'          => __( 'Ruta Padre:', 'text_domain' ),
		'new_item_name'              => __( 'Nueva Ruta', 'text_domain' ),
		'add_new_item'               => __( 'Añadir Ruta', 'text_domain' ),
		'edit_item'                  => __( 'Editar Ruta', 'text_domain' ),
		'update_item'                => __( 'Actualizar Ruta', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separar Rutas por comas', 'text_domain' ),
		'search_items'               => __( 'Buscar Rutas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Añadir o borrar Rutas', 'text_domain' ),
		'choose_from_most_used'      => __( 'Elige la ruta más usada', 'text_domain' ),
		'not_found'                  => __( 'No encontrada Rutas', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                       => 'routes-motorhome',
		'with_front'                 => true,
		'hierarchical'               => true,
	);
	$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( 'Rutas', array( 'post', 'page', 'nav_menu_item', 'attachment' ), $args );

}

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

}