Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

regiones de chile taxonomy

taxonomia simple para regiones de Chile

// Register Custom Taxonomy
function region_custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'regiones', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'region', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Región', 'text_domain' ),
		'all_items'                  => __( 'Todas las Regiones', 'text_domain' ),
		'parent_item'                => __( 'Región Padre', 'text_domain' ),
		'parent_item_colon'          => __( 'Región Padre:', 'text_domain' ),
		'new_item_name'              => __( 'Nuevo Nombre de Región', 'text_domain' ),
		'add_new_item'               => __( 'Añadir Región', 'text_domain' ),
		'edit_item'                  => __( 'Editar Región', 'text_domain' ),
		'update_item'                => __( 'Actualizar Región', 'text_domain' ),
		'separate_items_with_commas' => __( 'Regiones separadas por comas', 'text_domain' ),
		'search_items'               => __( 'Buscar Regiones', 'text_domain' ),
		'add_or_remove_items'        => __( 'Añadir o remover Regiones', 'text_domain' ),
		'choose_from_most_used'      => __( 'Esgoger de las regiones mas usadas', 'text_domain' ),
		'not_found'                  => __( 'Región no Encontrada', 'text_domain' ),
	);
	$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( 'region', array( 'post' ), $args );

}

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