-
Hello,
I develop a project that comes with a Custom Post Type and a Custom Taxonomy.
In my custom taxonomy, I have declared the following rewrite options:
$rewrite = [ 'slug' => 'katigoria-etaireion', 'with_front' => true, 'hierarchical' => false, ]; $args = [ 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'rewrite' => $rewrite, 'show_in_rest' => true, ];
When I create hierarchically nested terms like: Auto & Moto -> Gas Stations the WordPress generates URL like the following one:
/katigoria-etaireion/gas-stations
but the placeholder in the field “Canonical URL” in the term editing page, is like this:/katigoria-etaireion/auto-moto/gas-stations/
.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The ticket ‘Possible Bug: Canonical URL for custom URL structure points to wrong URL’ is closed to new replies.