Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Marcas Costablanca

// Register Custom Taxonomy
function jiac_recurso_category() {

	$labels = array(
		'name'                       => _x( 'Marcas', 'Taxonomy General Name', 'jiac' ),
		'singular_name'              => _x( 'Marca', 'Taxonomy Singular Name', 'jiac' ),
		'menu_name'                  => __( 'Marca', 'jiac' ),
		'all_items'                  => __( 'Todos', 'jiac' ),
		'parent_item'                => __( 'Padre', 'jiac' ),
		'parent_item_colon'          => __( 'Padre:', 'jiac' ),
		'new_item_name'              => __( 'Nueva marca', 'jiac' ),
		'add_new_item'               => __( 'Añadir nueva marca', 'jiac' ),
		'edit_item'                  => __( 'Editar marca', 'jiac' ),
		'update_item'                => __( 'Actualizar marca', 'jiac' ),
		'separate_items_with_commas' => __( 'Separa las marcas con comas', 'jiac' ),
		'search_items'               => __( 'Buscar marcas', 'jiac' ),
		'add_or_remove_items'        => __( 'Añadir o borrar marcas', 'jiac' ),
		'choose_from_most_used'      => __( 'Elegir entre los más usados', 'jiac' ),
		'not_found'                  => __( 'No encontrado', 'jiac' ),
	);
	$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( 'recurso_category', array( 'recurso' ), $args );

}

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