Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 0 voices.

Last updated by Waqas Bin Hasan 1 day, 9 hours ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 23, 2025 at 2:40 pm #17264443

bergmans23

Background of the issue:
I am trying to sync links in custom fields across different languages using WPML. The issue can be seen on this page: hidden link. I expected the button in the Call To Action at the bottom of the page to point to a target page in the correct language. WPML's tooltip indicates that the field value should be copied from the default language and kept in sync across languages.

Symptoms:
The button in the Call To Action does not point to the target page in the correct language. Instead, clicking the Read More button on all three language versions of the CTA leads to the English version of the targeted page.

Questions:
Why are the links in custom fields not syncing correctly across languages?
How can I ensure that the Call To Action button points to the target page in the correct language?

July 25, 2025 at 12:24 pm #17271012

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hi,

Thank you for contacting the support.

You can set custom fields' translation preference to "Copy once" or "Translate", so then these aren't synced based on default language, but, are available for translation.

Please see https://wpml.org/documentation/getting-started-guide/translating-custom-fields/ for details.

After setting field preference, please try these steps:

- Open the content having that field in default language for editing.
- Make a small change in the content.
- Save.
- Update the translation. When translating, this should include the custom field which you can then translate accordingly.

Regards.

July 27, 2025 at 7:03 pm #17273408

bergmans23

Hi Waqas,

Thanks!

But shouldn't WPML normally have to take care of linking to the right language version of a target page for me?

I'd rather only insert the url for the primary language page and let WPML take care of choosing the right language version, when clicked.

Why doesn't that function as the tool tip advertises?

Thanks!
Bye
Ward

July 28, 2025 at 7:18 am #17273842

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Yes of course internal links should be taken care by WPML. However, as per my understanding this depends on how the field or widget being registered by the theme or plugin (which is responsible for bringing this functionality into the site).

However, I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

July 28, 2025 at 2:13 pm #17275706

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for the access, I was able to login and check for the said problem.

In fact, there's no problem, because you're using WordPress editor for translating hidden link. So in this case, WPML does nothing and you've to translate all the content on your own.

However you need this field to set to "Copy once" in WPML -> Settings -> Custom Fields Translation, so you can edit the field value in the translation and add the desired translated link. Otherwise, if you keep it as "Copy", then upon saving, it 'll be synced with default language and you'll always have the default language link.