function taxonomias_init() {
// Plataformas
$labels = array(
'name' => 'Plataformas',
'singular_name' => 'Plataforma',
'search_items' => 'Buscar Plataformas',
'popular_items' => 'Plataformas populares',
'all_items' => 'Todas las Plataformas',
'parent_item' => null,
'parent_item_colon' => null,
'edit_item' => 'Editar Plataforma',
'update_item' => 'Actualizar Plataforma',
'add_new_item' => 'Añadir Nueva Plataforma',
'new_item_name' => 'Nuevo Nombre de Plataforma',
'separate_items_with_commas' => 'Separa las plataformas con comas',
'add_or_remove_items' => 'Añadir o borrar plataformas',
'choose_from_most_used' => 'Elije entre las plataformas más utilizadas',
'menu_name' => 'Plataformas',
);
register_taxonomy(
'plataforma',
'post',
array(
'hierarchical' => true,
'label' => 'Plataformas',
'labels' => $labels,
'sort' => true,
'args' => array('orderby' => 'term_order'),
'rewrite' => array('slug' => 'plataforma', 'with_front' => true, 'hierarchical' => true),
'query_var' => 'plataforma',
'show_ui' => true,
'show_in_nav_menus' => true,
'public' => true
)
);
}
add_action( 'init', 'taxonomias_init', 0 );