Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Client was unable to change the slug of a translated page to "the-lake-project"; it kept reverting to "the-lake-project-12". The client had already deleted old String translations but the issue persisted.

Solution:
Eventually, the client discovered that old translated pages using the desired slug were causing the issue, and after deleting them, the problem was resolved.

Before making these changes, it's important to back up your website and database.

If this solution doesn't seem relevant to your situation, please open a new support ticket with us and we'll be happy to assist you further.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by bertL-3 1 year, 5 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 23, 2024 at 10:41 pm #15219122

bertL-3

Hi

I want to change the slug in a translated page to "the-lake-project". In our dutch version it created the slug "the-lake-project-12". When i want to change this back to "the-lake-project" it does not work and keeps giving med "the-lake-project-12".

I have been able to change it to "thelakeproject" but i would like to know why i can not change the slug back to "the-lake-project".

I have deleted all the old String translations but this did not solve the problem.

See attached picture

best regards
Karel Vanrietvelde

slug-issue.JPG
January 24, 2024 at 6:19 am #15219540

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Karel,

Thank you for contacting the support.

Post and Page slugs are automatically created from the title. If you want them available as slugs for you to translate, use these steps:

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

1. Go to WPML → Settings. Scroll to Translated documents options.

2. Under Page URL, choose the Translate option. Click Save.

See attached.

After that, resave permalinks (WordPress Settings -> Permalinks), then edit the page in default language, make a small change like a word or dot, save and update the translation.

Then in translation editor, search for the page slug (if it doesn't appear) and translate accordingly (https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/).

Please let me know if it helps or I'll try my best to further assist you on the matter.

Regards.

sending-to-translators.png
January 24, 2024 at 11:37 am #15221435

bertL-3

Hi

I have tried your suggestion but it does not work. It keep adding a number when i changed it. It looks correct in WMPL but when i i test it live on frontend it keep adding a number.
nl/the-lake-project also changes to nl/the-lake-project-13

I have tried to recreate the page from scratch but the problem stays.

Any further ideas?

Best regards
Karel

January 24, 2024 at 12:43 pm #15221730

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I see you're using a redirection plugin and as per your description, it may also be caching.

Before proceeding further, may I ask you to try the following?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Deactivate all plugins except WPML and its addons and check for the issue.
- Clear all caches and check again.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2021 or 2023).

Please let me know if it helps or I'll try my best to further assist you on the matter.

January 24, 2024 at 12:57 pm #15221791

bertL-3

I have found the solution.

There were old translated pages left that used this slug. I have now deleted all non used translated pages. There is on option to activate automatic deletion of the translated pages when you delelete the standard language. But this was not activated.

All fine now
Karel

January 24, 2024 at 12:58 pm #15221793

bertL-3

Thank you for all the tips