Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Categorías editoriales – ASCOOP

Categorías editoriales – ASCOOP

if ( ! function_exists( 'categorias_editoriales' ) ) {

// Register Custom Taxonomy
function categorias_editoriales() {

	$labels = array(
		'name'                       => 'Categorías editoriales',
		'singular_name'              => 'Categoría editorial',
		'menu_name'                  => 'Categoría',
		'all_items'                  => 'Todas las categorías',
		'parent_item'                => 'Categoría padre',
		'parent_item_colon'          => 'Categoría padre:',
		'new_item_name'              => 'Nueva categoría',
		'add_new_item'               => 'Añadir nueva categoría',
		'edit_item'                  => 'Editar categoría',
		'update_item'                => 'Actualizar categoría',
		'view_item'                  => 'Ver categoría',
		'separate_items_with_commas' => 'Separar categorías por comas',
		'add_or_remove_items'        => 'Quitar o añadir categorías',
		'choose_from_most_used'      => 'Elegir entre las más utilizadas',
		'popular_items'              => 'Categorías populares',
		'search_items'               => 'Buscar categorías',
		'not_found'                  => 'No encontrada',
		'no_terms'                   => 'No hay categorías',
		'items_list'                 => 'Listado de categorías',
		'items_list_navigation'      => 'Lista de categorías de navegación',
	);
	$rewrite = array(
		'slug'                       => 'categorias-editoriales',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'categorias_editoriales', array( 'editorial_cc' ), $args );

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

}