Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

CP Taxonomía Lugar

Taxonomía de Lugar para Vídeos

if ( ! function_exists( 'cp_taxonomia_lugar' ) ) {

// Register Custom Taxonomy
function cp_taxonomia_lugar() {

	$labels = array(
		'name'                       => _x( 'Lugares', 'Taxonomy General Name', 'cp_taxonomia_lugar' ),
		'singular_name'              => _x( 'Lugar', 'Taxonomy Singular Name', 'cp_taxonomia_lugar' ),
		'menu_name'                  => __( 'Lugares', 'cp_taxonomia_lugar' ),
		'all_items'                  => __( 'Todos los Lugares', 'cp_taxonomia_lugar' ),
		'parent_item'                => __( 'Lugar Padre', 'cp_taxonomia_lugar' ),
		'parent_item_colon'          => __( 'Lugar Padre:', 'cp_taxonomia_lugar' ),
		'new_item_name'              => __( 'Nuevo Nombre de Lugar', 'cp_taxonomia_lugar' ),
		'add_new_item'               => __( 'Añadir Nuevo Lugar', 'cp_taxonomia_lugar' ),
		'edit_item'                  => __( 'Editar Lugar', 'cp_taxonomia_lugar' ),
		'update_item'                => __( 'Actualizar Lugar', 'cp_taxonomia_lugar' ),
		'view_item'                  => __( 'Ver Lugar', 'cp_taxonomia_lugar' ),
		'separate_items_with_commas' => __( 'Separar Lugares con Comas', 'cp_taxonomia_lugar' ),
		'add_or_remove_items'        => __( 'Añadir o quitar Lugares', 'cp_taxonomia_lugar' ),
		'choose_from_most_used'      => __( 'Escoger los lugares más usados', 'cp_taxonomia_lugar' ),
		'popular_items'              => __( 'Lugares Populares', 'cp_taxonomia_lugar' ),
		'search_items'               => __( 'Buscar Lugares', 'cp_taxonomia_lugar' ),
		'not_found'                  => __( 'No encontrado', 'cp_taxonomia_lugar' ),
		'no_terms'                   => __( 'No hay Lugares', 'cp_taxonomia_lugar' ),
		'items_list'                 => __( 'Lista de Lugares', 'cp_taxonomia_lugar' ),
		'items_list_navigation'      => __( 'Lista de Navegación de Lugares', 'cp_taxonomia_lugar' ),
	);
	$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( 'lugares', array( 'cp_videos' ), $args );

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

}