Skip Navigation

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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Dražen Duvnjak 3 days, 1 hour ago.

Assisted by: Dražen Duvnjak.

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 Duvnjak
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