Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Categorias habitantes

if ( ! function_exists( 'taxonomy_habitantes' ) ) {

// Register Custom Taxonomy
function taxonomy_habitantes() {

	$labels = array(
		'name'                       => _x( 'Categoria Habitantes', 'Taxonomy General Name', 'taxonomy_habitantes' ),
		'singular_name'              => _x( 'Categorías Habitantes', 'Taxonomy Singular Name', 'taxonomy_habitantes' ),
		'menu_name'                  => __( 'Categoria Habitantes', 'taxonomy_habitantes' ),
		'all_items'                  => __( 'Todas las Categorías de habitantes', 'taxonomy_habitantes' ),
		'parent_item'                => __( 'Categoría Padre del Habitante', 'taxonomy_habitantes' ),
		'parent_item_colon'          => __( 'Categoría Hijo de Habitante:', 'taxonomy_habitantes' ),
		'new_item_name'              => __( 'Nueva Categoria', 'taxonomy_habitantes' ),
		'add_new_item'               => __( 'Añadir Nueva Categoría para Habitante', 'taxonomy_habitantes' ),
		'edit_item'                  => __( 'Editar Categoria', 'taxonomy_habitantes' ),
		'update_item'                => __( 'Actualizar Categoria', 'taxonomy_habitantes' ),
		'view_item'                  => __( 'View Item', 'taxonomy_habitantes' ),
		'separate_items_with_commas' => __( 'Separa por coma los items', 'taxonomy_habitantes' ),
		'add_or_remove_items'        => __( 'Añadir o Remover Items', 'taxonomy_habitantes' ),
		'choose_from_most_used'      => __( 'Elija entre los más usados', 'taxonomy_habitantes' ),
		'popular_items'              => __( 'Items Populares', 'taxonomy_habitantes' ),
		'search_items'               => __( 'Buscar Categoría del Habitante', 'taxonomy_habitantes' ),
		'not_found'                  => __( 'Sin Resultados', 'taxonomy_habitantes' ),
		'no_terms'                   => __( 'Sin Categoria', 'taxonomy_habitantes' ),
		'items_list'                 => __( 'Listado de Categorias de Habitantes', 'taxonomy_habitantes' ),
		'items_list_navigation'      => __( 'Lista de Categorias de Habitantes..', 'taxonomy_habitantes' ),
	);
	$rewrite = array(
		'slug'                       => 'categorias-habitantes',
		'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( 'categorias-habitantes', array( 'habitante' ), $args );

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

}