Hierarchical %taxonomy%/$post_type%/ not working properly
-
Hello,
I recently had to convert a single language website (italian) to a double language one.
I work with QTranslateX and Qtranslate Slug.
My permalink structure for a specific custom post type (products) is set to be hierarchical in this way:$args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'supports' => array('title','editor','thumbnail'), 'menu_position' => 21, 'menu_icon' => 'dashicons-media-spreadsheet', 'show_in_nav_menus' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'has_archive' => false, 'rewrite' => array('slug' => 'catalogue/%product_cat%','with_front' => false), 'query_var' => true, 'can_export' => true, 'capability_type' => 'post' );
Where %product_cat% is a custom taxonomy.
Now permalinks are badly generated
https://www.arredoufficio.com/catalogo/%cat_prodotto%/reception-per-ufficio/
instead of being
https://www.arredoufficio.com/catalogo/reception-per-uffici/reception-per-ufficio/
The slug are working properly but the permalinks frontend and backend are not.
Evean yoast sitemap reports bad permalinks.
Did anyone have the same problem?
Any ideas?
Thanks in advance
- The topic ‘Hierarchical %taxonomy%/$post_type%/ not working properly’ is closed to new replies.