Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

catalogo-2

if ( ! function_exists( 'apk_familia_productos_taxonomy' ) ) {

// Register Custom Taxonomy
function apk_familia_productos_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Categorias de producto', 'Taxonomy General Name', 'apk' ),
		'singular_name'              => _x( 'Categoria de producto', 'Taxonomy Singular Name', 'apk' ),
		'menu_name'                  => __( 'Familias de productos', 'apk' ),
		'all_items'                  => __( 'Todas', 'apk' ),
		'parent_item'                => __( 'Superior', 'apk' ),
		'parent_item_colon'          => __( 'Superior:', 'apk' ),
		'new_item_name'              => __( 'Nueva familia', 'apk' ),
		'add_new_item'               => __( 'Agregar familia', 'apk' ),
		'edit_item'                  => __( 'Editar familia', 'apk' ),
		'update_item'                => __( 'Actualizar familia', 'apk' ),
		'view_item'                  => __( 'Ver Familia', 'apk' ),
		'separate_items_with_commas' => __( 'Separar familias con coma', 'apk' ),
		'add_or_remove_items'        => __( 'Agregar o eliminar familias', 'apk' ),
		'choose_from_most_used'      => __( 'Eligir entre las mas usadas', 'apk' ),
		'popular_items'              => __( 'Popular Items', 'apk' ),
		'search_items'               => __( 'Buscar familias de productos', 'apk' ),
		'not_found'                  => __( 'No encontrado', 'apk' ),
		'no_terms'                   => __( 'No items', 'apk' ),
		'items_list'                 => __( 'Items list', 'apk' ),
		'items_list_navigation'      => __( 'Items list navigation', 'apk' ),
	);
	$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_producto', array( 'Custom Post Type' ), $args );

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

}