Home›Support›English Support›[Resolved] "This field value is copied from the default language and will be kept in sync across languages." ...
[Resolved] "This field value is copied from the default language and will be kept in sync across languages." ...
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to sync links in ACF custom fields across different languages using WPML, but the Call To Action button does not point to the target page in the correct language.
Solution: If you're experiencing this issue, we recommend you follow these steps: 1. Ensure you have a full backup of your website and database. It's advisable to perform these changes on a staging or development site first. 2. Edit the field group and switch it to "Expert mode". 3. Save the changes. 4. Navigate to WPML -> Settings -> Custom Fields Translation and set your field to "Copy once" then save again. 5. Edit the field value in the translation and add the desired translated link.
This solution might be irrelevant if it's outdated or not applicable to your 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 issue persists, please open a new support ticket.
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.
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?
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.
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.
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.
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.
Hi Waqas,
Thanks! I understand the issue.
My only problem is; in WPML -> Settings -> Custom Fields Translation, I can not change the settings from Copy to Copy once...
Do I overwrite this somewhere, without getting in trouble with the content that is already in there?
Bye, ward
Why you can not change the field setting? Do you see a lock there? Just click that lock to enable the editing for the field and set as prescribed (remember to click Save after changing the setting).
The lock primarily refers to the existing configuration by wpml-config.xml file. This is used by the plugins/themes to provide a base/default setting for the fields, post types and etc. Unlocking it allows you to override it as desired.
Yep, i saw that lock.
Trouble is, I would have to change the translation settings for the complete ACF fieldset and I don't know if that will result in other problems aloing the way.
Did I overlook an option to only unlock specific fields?
Bye,
Ward
To change one particular field (or fields) to different settings, you'll need to set the field group to "Expert mode".
Although when you switch the field group to expert mode, all the field settings should remain intact, but I'll recommend to try the following steps:
- Please take full backup of your website and database beforehand. It is highly advised to try this on a staging/dev site first, so your live website isn't compromised.
- Then edit field group and switch to "Expert mode".
- Save.
- And then from WPML -> Settings -> Custom Fields Translation set your field to "Copy once" and save.
- Then edit the field value in the translation and add the desired translated link.