WordPress enforces unique slugs. If a page, post, or taxonomy already uses the slug (or even if it’s sitting in the Trash), WordPress will create a new slug with “-2”, “-3”, etc. TranslatePress can also create translated slugs that collide, causing the same behavior in translated URLs.
Run this query in phpMyAdmin (adjust pageName to your slug):
SELECT *
FROM wp_posts
WHERE post_name LIKE 'pageName%';
What to look for: An older entry using the clean slug (e.g., post_name = 'pageName') while your current page is stuck as pageName-2.
trash or it’s an old draft you no longer need).pageName-2 back to pageName. Save.Search in the TranslatePress slug table for collisions:
SELECT *
FROM wp_trp_slug_translations
WHERE translated LIKE '%pageName%';
If a translated slug duplicates an existing one (causing -2), remove or adjust the conflicting entry, then set the correct translated slug via TranslatePress (front-end editor or Slugs screen).
observabilite instead of observabilité) for clean URLs.
Like (0)