Skip Navigation

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

Problem:
The client is developing a site and encountering issues with WPML translations: 1. URLs are automatically translated and not just adding the language code. 2. Translated pages do not follow the customized template and revert to the default template. 3. Links on the 'profile page' redirect to the default language instead of the translated 'member page'.
Solution:
1. To prevent WPML from automatically translating slugs based on the page title, deactivate the relevant option in WPML settings. For detailed guidance, refer to this documentation.
2. Templates are usually saved in a custom field within the page. Set the custom field to 'Copy' or 'Copy once' to ensure templates follow through in translations. More information can be found here: this documentation.
3. For translating links, if they belong to a custom post type, WPML will automatically handle the translation. Adjust link translation settings under WPML -> Settings. Manual link translation can also be done during page translation, as detailed here: this guide.

If these solutions do not resolve your issues or seem outdated, please check related known issues at https://wpml.org/known-issues/, verify you have the latest versions of themes and plugins, and consider opening a new support ticket for further assistance at WPML support forum.

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 1 reply, has 0 voices.

Last updated by taufikW 1 day, 20 hours ago.

Assisted by: Carlos Rojas.

Author Posts
November 27, 2024 at 11:26 pm #16451868

taufikW

Background of the issue:
I am developing a site and trying to translate two pages using WPML: a 'group profile' page with buttons linking to each 'member profile', and a 'member profile' page.

Symptoms:
1. URL was automatically translated. Original: hidden link Expected: hidden link Output: hidden link 2. Translated pages do not follow the customized template and revert to the default template. 3. Links on the 'profile page' redirect to the default language instead of the translated 'member page'.

Questions:
How can I ensure the URL only adds the language code without translating the rest?
How do I make translated pages follow the customized template?
How can I ensure links follow the current language setting?

November 28, 2024 at 11:13 am #16454538

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hello,
Thank you for contacting us

1.- In this case you must deactivate the option that allows WPML to automatically translate the slug based on the page title. Please follow this guide to understand how the configuration works: https://wpml.org/documentation/getting-started-guide/translating-page-slugs/

2.- Usually templates are saved in a custom field within the page. I recommend you to read this documentation: https://wpml.org/documentation/getting-started-guide/translating-custom-fields/ where it explains how to identify the custom field and configure it correctly. In your case, you must set the custom field to 'Copy' or 'Copy once'

3.- If the links belong to a WordPress user profile, you can't translate them. But if the links are for a custom post type then WPML will automatically translate them. You must go to WPML -> Settings -> Adjust link translation, click on the button, and wait until the process finishes.

You can also manually translate the links when translating the page: https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/

Regards,
Carlos

November 28, 2024 at 1:08 pm #16455215

taufikW

I will try the solution one by one.

Problem 1
It does not help. When I checked, my settings were

Slug translations
> Translate custom post and taxonomy base slugs (via WPML String Translation). UNCHECKED

Translated documents options
> Page URL
>> Copy from original language if translation language uses encoded URLs SELECTED

Anyway I am scheduling a ZOOM session but nobody came and it has been 8 minutes passed.

November 28, 2024 at 1:27 pm #16455338

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there,

Please let me know if you are getting help with this issue in the zoom call.

November 28, 2024 at 1:29 pm #16455347

taufikW

Problem 2
I set anything that could be set as Copy yet after I finished a new translation the slug still translates to Japanese and the template does not follow the actual page template.

Also I scheduled a Zoom assistance session for GMT+7 20:00 but now 20:28 nobody attended. I am really disappointed.

Screenshot 2024-11-28 202849.png
November 28, 2024 at 1:30 pm #16455364

taufikW

I do not get any help because nobody attended.

November 28, 2024 at 1:36 pm #16455452

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

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

Please share the access credentials

November 29, 2024 at 1:07 am #16457266

taufikW

Hello, I have sent the credentials. When (in GMT+7) that I can expect my site to be checked? Thanks.

November 29, 2024 at 11:08 am #16459046

taufikW

Hello, I finally scheduled a Zoom meeting with Mihai Apetrei and was told to create separate tickets for the remaining issues. Basically these issues are kinda resolved but some bugs remain.

I appreciate if anyone can assist me with these 2 bugs:
https://wpml.org/forums/topic/font-bug-after-translating-font-family-font-face-etc/?ref=wd
https://wpml.org/forums/topic/foogallery-ignores-setting-in-translation/?ref=wd