[Escalated to Compatibility team] ACF Image Field not syncing correctly
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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I am trying to sync an ACF Image Field across multiple languages in a WordPress site using WPML. The Swedish version (default language) works correctly, but the Danish and English versions do not. URLs for reference:
- Swedish version:
How to replicate:
1. Add Image to ACF Image Field
2. Fetch it with Dynamical Content and display it as an image
3. Sync it in all languages
4. The svgs are shown in the original language
5. The standard "no image shown" placeholder is shown in all other languages than the defafult language
5.1 - The "no image shown" placeholder is the standard image for
How to fix it temporarily (until next time i update the post):
Edit the a post type template manually (without the Advanced Editor) and resassign one of images dynamic source, per language.
Symptoms:
The 'no image shown' placeholder is displayed instead of the actual images in the Danish and English versions. I expected to see 10 identical SVG files across all languages, but instead, I got 10 'No Image Found'.
Questions:
Why is the 'no image shown' placeholder appearing instead of the actual images in the Danish and English versions?
How can I ensure that the ACF Image Field syncs correctly across all languages?
Our compatibility team checked the issue and suggested the following workaround:
- Go to WPML->Settings->Custom Fields Settings
- Click on show system fields
- Set the following fields as copy _kad_element_show_conditionals, _kad_element_all_show, _kad_element_hide_conditionals, _kad_element_user_conditionals, _kad_element_device_conditionals
- Update the template
- Manually edit the template in secondary languages
- Click on the X to remove the selected image and resave the dynamic field (see image below).
Doesn't work when template is updated in default language.
I.e.
Done everything above. All settings fixed, updated the template, manually updated each language's template once.
Works great if I MANUALLY edit each language each time, which is not possible when working on multiple templates in multiple languages.
Then let's say I want to change an image or something else in the template, which is something we do often.
1. Update the default language template
2. Update the secondary languages using Advance Trans. Editor
3. Default language is fine. Secondary still gets the "No image found" placeholder.
As soon as i manually edit each language's template it's fine = the images are synced. So basically this did no difference.
The link you sent me is for DIFFERENT designs per language. This is the opposite of what we are trying to achieve?
If i manually replicate each change I make in the original language to each template in each language it works yes.
Edit: This has been the case since the beginning, i.e. the below made no difference at all:
"- Set the following fields as copy _kad_element_show_conditionals, _kad_element_all_show, _kad_element_hide_conditionals, _kad_element_user_conditionals, _kad_element_device_conditionals"
I will send your feedback regarding using WPML editors to our team, I will update you accordingly if it's possible.
Thanks
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.