Skip Navigation

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

Problem:
The client has a large multilingual site with posts in English and Spanish, consolidated from four older sites. They are facing issues with hardcoded links in Spanish content not correctly reflecting the new site structure.
Solution:
We recommend updating the hardcoded links via the database (DB). This approach will not affect the page content as these links are embedded in post meta. Therefore, updating them directly in the DB or by re-translating the pages and the links within them is necessary. For dynamic links, such as menu items, these should adjust automatically when you modify your WPML language settings.

If this solution does not resolve your issue or seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.

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 Dražen 3 weeks, 2 days ago.

Assisted by: Dražen.

Author Posts
November 27, 2024 at 6:13 pm #16451377

davidT-89

Background of the issue:
I have a new large site (hidden link) with 2500 English posts and 3500 Spanish posts. My new site consolidates four different old sites (two English and two Spanish sites). Currently, Spanish content links look like this: calor. With my WPML setup, all Spanish content exists at the "/es/" subpath, so the location of that page on my new site is actually hidden link.

Symptoms:
I need to update URLs in Spanish posts to reflect the new "/es/" subpath structure.

Questions:
What is the route I should take to update those URLs?
Should I run a find/replace query on my database to replace all occurrences of "es.beyondtype1.org" with "beyonddiabetes.com/es"?
Does running a find/replace query cause issues using the "/es/" subpath since that is automatically generated by WPML?

November 28, 2024 at 7:51 am #16453243

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for contacting us.

Yes, probably the best would be updating them via DB. It will not cause an issue for page content, since these links are hardcoded in post meta, so you need to update them either way like that or by re-translating pages and links inside them.

For dynamic links, like menu items or similar, it will either way adjust or change automatically if you change / adjust your WPML language settings.

Hope this helps.

Regards,
Drazen