Skip Navigation

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

Problem:
You are trying to sync an ACF Image Field across multiple languages in a WordPress site using WPML. While the Swedish version displays correctly, the Danish and English versions show a 'no image shown' placeholder instead of the actual images.

Solution:
We recommend the following steps to address this issue:
1. Ensure that the conditional fields are set to COPY.
2. Navigate to WPML > Settings > Custom XML Config and add the following XML configuration:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="kadence/image" translate="1">
            <key name="id" type="post-ids" sub-type="attachment"></key>
      <key name="kadenceDynamic">
                </key><key name="*">
                    <key name="url"></key>
                </key>
            
        </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

3. Go to Appearance > Kadence > Elements.
4. Edit the template and change the dynamic field to 'Custom field = Manual input', then revert it back to 'Custom Field = field_name'.
5. Edit the translation accordingly.
6. Check the frontend of a page using this template and its translation to see if the images display correctly.

If this solution does not resolve your issue or seems outdated, 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 problem 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.

Tagged: 

This topic contains 0 reply, has 0 voices.

Last updated by Shekhar Bhandari 1 week, 6 days ago.

Assisted by: Shekhar Bhandari.

Author Posts
April 25, 2025 at 9:47 am

nicolaiL-2

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?

April 25, 2025 at 10:40 am
April 25, 2025 at 11:10 am #16968238

nicolaiL-2

Issue replicated and confirmed:

Default language:
hidden link

Second language
hidden link

Please remove URL:s to our website since this is a public thread.

April 25, 2025 at 11:55 am #16968416

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have escalated the issue to our compatibility team, I will update you as soon as I will receive further feedback from the compatibility team.

Look forward to your reply.

Thanks

April 29, 2025 at 4:58 am #16977118

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

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).

https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

Let me know if this helps.

Thanks

Screenshot (1).png
April 29, 2025 at 6:58 am #16977296

nicolaiL-2

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?

Video: hidden link

April 29, 2025 at 7:07 am #16977336

nicolaiL-2

Confirmed in your sandbox:

hidden link

April 29, 2025 at 7:15 am #16977379

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The solution is to use manual editor for the templates everytime, can you confirm if this way it works properly?

Thanks

April 29, 2025 at 7:20 am #16977403

nicolaiL-2

Hi!

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"

April 29, 2025 at 7:41 am #16977534

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I will send your feedback regarding using WPML editors to our team, I will update you accordingly if it's possible.

Thanks

May 2, 2025 at 5:49 am #16987927

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Our compatibility team suggested the following workaround:

- Make sure to set the conditional fields as COPY as mentioned before

- Go to "WPML > Settings > Custom XML Config" and Add the following

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="kadence/image" translate="1">
			<key name="id" type="post-ids" sub-type="attachment" />
      <key name="kadenceDynamic">
				<key name="*">
					<key name="url" />
				</key>
			</key>
		</gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

- Go to "Appearance > Kadence > Elements"

- Edit the template and change the dynamic field to something else, for example, "Custom field = Manual input", then reverse back to "Custom Field = field_name"

- Edit the translation

- Check on the frontend a page using this template and its translation

Let me know if this helps.

Thanks