Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

taxonomía productos

if ( ! function_exists( 'Taxonomias' ) ) {

// Register Custom Taxonomy
function Taxonomias() {

	$labels = array(
		'name'                       => _x( 'categorías', 'Taxonomy General Name', 'taxonomías' ),
		'singular_name'              => _x( 'categoría', 'Taxonomy Singular Name', 'taxonomías' ),
		'menu_name'                  => __( 'Categorías', 'taxonomías' ),
		'all_items'                  => __( 'Todas las categorías', 'taxonomías' ),
		'parent_item'                => __( 'Categoría principal', 'taxonomías' ),
		'parent_item_colon'          => __( 'Categoría principal:', 'taxonomías' ),
		'new_item_name'              => __( 'Nueva categoría', 'taxonomías' ),
		'add_new_item'               => __( 'Añadir nueva categoría', 'taxonomías' ),
		'edit_item'                  => __( 'Editar categoría', 'taxonomías' ),
		'update_item'                => __( 'Actualizar categoría', 'taxonomías' ),
		'view_item'                  => __( 'Ver categoría', 'taxonomías' ),
		'separate_items_with_commas' => __( 'Separe los elementos con comas', 'taxonomías' ),
		'add_or_remove_items'        => __( 'Agregar o quitar elementos', 'taxonomías' ),
		'choose_from_most_used'      => __( 'Elige entre los más usados', 'taxonomías' ),
		'popular_items'              => __( 'Categorías populares', 'taxonomías' ),
		'search_items'               => __( 'Buscar categorías', 'taxonomías' ),
		'not_found'                  => __( 'No encontrado', 'taxonomías' ),
		'no_terms'                   => __( 'No hay categorías', 'taxonomías' ),
		'items_list'                 => __( 'Listado de categorías', 'taxonomías' ),
		'items_list_navigation'      => __( 'Navegación de lista de categorías', 'taxonomías' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'Categorias', array( 'category' ), $args );

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

}