DID IT
My problem was the miss code found in the array of the custom post type texturas_temp
This:
// Register Custom Post Type
function texturas_temp() {
$labels = array(
'name' => _x( 'texturas_temp', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Textura', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'texturas_temp', 'text_domain' ),
'name_admin_bar' => __( 'texturas_temp', 'text_domain' ),
'parent_item_colon' => __( 'Textura:', 'text_domain' ),
'all_items' => __( 'Todas', 'text_domain' ),
'add_new_item' => __( 'Adicionar Nova Textura', 'text_domain' ),
'add_new' => __( 'Adicionar Nova', 'text_domain' ),
'new_item' => __( 'Adicionar Textura', 'text_domain' ),
'edit_item' => __( 'Editar Textura', 'text_domain' ),
'update_item' => __( 'Atualizar Textura', 'text_domain' ),
'view_item' => __( 'Visualizar Textura', 'text_domain' ),
'search_items' => __( 'Pesquisar Textura', 'text_domain' ),
'not_found' => __( 'Nenhuma Textura Encontrada', 'text_domain' ),
'not_found_in_trash' => __( 'Nenhuma Textura Econtrada no Lixo', 'text_domain' ),
'items_list' => __( 'Lista de texturas_temp', 'text_domain' ),
'items_list_navigation' => __( 'Navegação Lista de texturas_temp', 'text_domain' ),
'filter_items_list' => __( 'Filtras Lista de texturas_temp', 'text_domain' ),
);
$args = array(
'label' => __( 'Textura', 'text_domain' ),
'description' => __( 'texturas_temp da Futon Company.', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'texturas_temp' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-tagcloud',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'hierarchical' => true,
'rewrite' => array(
'slug' => 'texturas_temp/%categorias-texturas_temp%', // This controls the base slug that will display before each term
'with_front' => false // Don't display the category base before "/locations/"
),
'query_var' => 'texturas_temp-term',
'exclude_from_search' => false,
'has_archive' => 'texturas_temp',
'capability_type' => 'page',
);
register_post_type( 'texturas_temp', $args );
}
add_action( 'init', 'texturas_temp', 0 );
}
To this:
// Register Custom Post Type
function texturas_temp() {
$labels = array(
'name' => _x( 'texturas_temp', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Textura', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'texturas_temp', 'text_domain' ),
'name_admin_bar' => __( 'texturas_temp', 'text_domain' ),
'parent_item_colon' => __( 'Textura:', 'text_domain' ),
'all_items' => __( 'Todas', 'text_domain' ),
'add_new_item' => __( 'Adicionar Nova Textura', 'text_domain' ),
'add_new' => __( 'Adicionar Nova', 'text_domain' ),
'new_item' => __( 'Adicionar Textura', 'text_domain' ),
'edit_item' => __( 'Editar Textura', 'text_domain' ),
'update_item' => __( 'Atualizar Textura', 'text_domain' ),
'view_item' => __( 'Visualizar Textura', 'text_domain' ),
'search_items' => __( 'Pesquisar Textura', 'text_domain' ),
'not_found' => __( 'Nenhuma Textura Encontrada', 'text_domain' ),
'not_found_in_trash' => __( 'Nenhuma Textura Econtrada no Lixo', 'text_domain' ),
'items_list' => __( 'Lista de texturas_temp', 'text_domain' ),
'items_list_navigation' => __( 'Navegação Lista de texturas_temp', 'text_domain' ),
'filter_items_list' => __( 'Filtras Lista de texturas_temp', 'text_domain' ),
);
$args = array(
'label' => __( 'Textura', 'text_domain' ),
'description' => __( 'texturas_temp da Futon Company.', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'categorias-texturas_temp' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-tagcloud',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'hierarchical' => true,
'rewrite' => array(
'slug' => 'texturas_temp/%categorias-texturas_temp%', // This controls the base slug that will display before each term
'with_front' => false // Don't display the category base before "/locations/"
),
'query_var' => 'texturas_temp-term',
'exclude_from_search' => false,
'has_archive' => 'texturas_temp',
'capability_type' => 'page',
);
register_post_type( 'texturas_temp', $args );
}
add_action( 'init', 'texturas_temp', 0 );
}
Basically I was naming my custom post type with its own taxonomy, changed:
'taxonomies' => array( 'texturas_temp' ),
To:
'taxonomies' => array( 'categorias-texturas_temp' ),
Working fine now…