Imovel Tax Tipo
// Register Custom Taxonomy
function imovel_taxonomy() {
$labels = array(
'name' => _x( 'Tipos', 'Taxonomy General Name', 'theme' ),
'singular_name' => _x( 'Tipo', 'Taxonomy Singular Name', 'theme' ),
'menu_name' => __( 'Tipo', 'theme' ),
'all_items' => __( 'Todos', 'theme' ),
'parent_item' => __( 'Parente', 'theme' ),
'parent_item_colon' => __( 'Parente:', 'theme' ),
'new_item_name' => __( 'Novo', 'theme' ),
'add_new_item' => __( 'Adicionar', 'theme' ),
'edit_item' => __( 'Editar', 'theme' ),
'update_item' => __( 'Atualizar', 'theme' ),
'view_item' => __( 'Ver', 'theme' ),
'separate_items_with_commas' => __( 'Separado por vírgulas', 'theme' ),
'add_or_remove_items' => __( 'Adicionar ou remover itens', 'theme' ),
'choose_from_most_used' => __( 'Selecione pelos mais usados', 'theme' ),
'popular_items' => __( 'Itens populares', 'theme' ),
'search_items' => __( 'Pesquisar', 'theme' ),
'not_found' => __( 'Nada localizado', 'theme' ),
'no_terms' => __( 'Sem itens', 'theme' ),
'items_list' => __( 'Listagem', 'theme' ),
'items_list_navigation' => __( 'Navegação', 'theme' ),
);
$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( 'tipo', array( 'post' ), $args );
}
add_action( 'init', 'imovel_taxonomy', 0 );