The correct one would be to have the same behavior as "Category"
of post type "post"
of wordpress, but this does not happen.
For example when I access http://localhost/projeto/anunciantes/
I have how to make my queries normally to customize my views, but when I access http://localhost/projeto/anunciantes/categoria/sub-categoria/enfim...
it shows me error 404, even though I have left 'hierarchical' => true,
I can not understand what's happening
register_taxonomy( 'anunciante_category', array( 'anunciante' ), array(
'hierarchical' => true,
'label' => __( 'Categoria Anunciantes' ),
'labels' => array( // Labels customizadas
'name' => _x( 'Categorias', 'Categorias' ),
'singular_name' => _x( 'Categoria', 'Categoria' ),
'search_items' => __( 'Pesquisar Categorias' ),
'all_items' => __( 'Todas Categorias' ),
'parent_item' => __( 'Categoria Pai' ),
'parent_item_colon' => __( 'Categoria Pai:' ),
'edit_item' => __( 'Editar Categoria' ),
'update_item' => __( 'Atualizar Categoria' ),
'add_new_item' => __( 'Adicionar Nova Categoria' ),
'new_item_name' => __( 'Nome Nova Categoria' ),
'menu_name' => __( 'Categorias' ),
),
'show_ui' => true,
'show_in_tag_cloud' => true,
'query_var' => true,
'rewrite' => array(
'slug' => 'anunciantes',//anunciantes/categorias
'with_front' => true,
),
)
);