Skip Navigation

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

Problem:
The client is translating pages on their WordPress site using WPML and needs to maintain consistent URLs with the old site. They have specific WPML settings configured but are facing issues with incorrect URLs for the translated pages. The client wants to know how to change the URL slug of a translated page, add the parent page to the URL, prevent future incorrect URLs, and correct URLs for already translated pages.
Solution:
We recommend reviewing our documentation on translating page slugs, which can be found here: Translating Page Slugs. Additionally, you can manually adjust the URLs by navigating to Pages, switching to the secondary language, using the 'quick edit' option to modify the permalink, and then updating it. If you encounter issues with pages not displaying after these changes, it may be related to your theme's cache, which should be reset or purged.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance.

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.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by calR-2 6 days, 14 hours ago.

Assisted by: Bobby.

Author Posts
May 2, 2025 at 5:51 pm #16990457

calR-2

<b>Background of the issue: </b>
I'm translating pages on my WordPress site using WPML. I need to keep the URLs of the translated pages consistent with the old site. I'm doing manual translations and have specific settings configured in WPML, such as 'Copy from original language if translation language uses encoded URLs' and disabled 'Translate base slugs of custom post types and taxonomies'. I have WPML Multilingual CMS and WPML String Translation plugins installed.

English page (primary language): hidden link
Spanish page (translated): hidden link
Desired URL for the Spanish page: hidden link

All 'minimum requirements' are met except one: "REST API is disabled" because it's a development site and the host wont' allow this until the site goes live; but I can't push it live until the translations are done.

<b>Symptoms: </b>
The URLs of the translated pages are not correct. The Spanish page URL does not match the desired format, and I need to change the URL slug and add the parent page to the URL.

<b>Questions: </b>
How do I change the URL slug of a translated page?
How do I add the parent page to the URL of a translated page?
How can I prevent future translations from having incorrect URLs?
How do I change the URL for pages that are already translated?

May 5, 2025 at 11:15 pm #16998704

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

It sounds like you are already familiar with the WPML Settings for the URL structure, but here is a great documentation in case you have not read it.

https://wpml.org/documentation/getting-started-guide/translating-page-slugs/

It should give an answer to most of the questions listed above.

Also, you can manually do this as well by going to Pages -> switch to the secondary language -> quick edit and edit the permalink then update.

Let me know your results, please.

May 7, 2025 at 6:00 pm #17008308

calR-2

Thanks Bobby. That helped.

I also hadn't seen the ability in pages to switch between English and Spanish--it's obvious now but I hadn't seen it earlier. I was able to do the quick edit and change the URLs.

There was a small additional issue with the pages not displaying after doing this--but I realized it was an additional issue with the Avada theme's cache needing to be reset/purged.

It's working smoothly now. Thanks again.