Área de Atuação
// Register Custom Taxonomy
function area_taxonomy() {
$labels = array(
'name' => _x( 'Áreas de Atuação', 'Taxonomy General Name', 'theme_lang' ),
'singular_name' => _x( 'Área de Atuação', 'Taxonomy Singular Name', 'theme_lang' ),
'menu_name' => __( 'Área de Atuação', 'theme_lang' ),
'all_items' => __( 'Todas as Áreas', 'theme_lang' ),
'parent_item' => __( 'Áreas Pai', 'theme_lang' ),
'parent_item_colon' => __( 'Áreas Pai:', 'theme_lang' ),
'new_item_name' => __( 'Nova Área', 'theme_lang' ),
'add_new_item' => __( 'Adicionar Nova Área', 'theme_lang' ),
'edit_item' => __( 'Editar Área', 'theme_lang' ),
'update_item' => __( 'Atualizar Área', 'theme_lang' ),
'separate_items_with_commas' => __( 'Áreas separadas por vírgulas', 'theme_lang' ),
'search_items' => __( 'Buscar Área', 'theme_lang' ),
'add_or_remove_items' => __( 'Adicionar ou remover Área', 'theme_lang' ),
'choose_from_most_used' => __( 'Escolha uma das áreas mais usadas', 'theme_lang' ),
'not_found' => __( 'Não encontrado', 'theme_lang' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'area', array( 'portfolio' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'area_taxonomy', 0 );