Skip Navigation

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

Problem:
The client was unable to display one image on a translated page, despite having translated all content, including images. The issue was suspected to be related to incorrect settings in the PHP file for image translation preferences.
Solution:
We recommended checking the translation settings for custom fields, specifically ensuring that images are set to COPY rather than 'Copy-once' or 'Translate'. For detailed guidance on setting the correct translation preferences for field types, we advised visiting the following documentation: Recommended Custom Fields Translation Preferences for ACF and WPML.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, please open a new support ticket. We also 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. For further assistance, you can contact us directly at the 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.

Tagged: 

This topic contains 1 replies, has 2 voices.

Last updated by Dražen 1 year ago.

Assisted by: Dražen.

Author Posts
June 13, 2024 at 2:33 pm

sophiaB-2

Background of the issue:
I am trying to translate all content on the page. I have translated everything, including all the images.

Symptoms:
One image is not showing on the translated page.

Questions:
Why is one image not displaying on the translated page?
Is there a specific setting or step I might have missed for translating images?

June 13, 2024 at 3:05 pm
June 13, 2024 at 3:18 pm #15737102

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

I am checking the shared page and at the bottom, I have enabled to see translation settings for custom fields. As I can see, it seems they are set either to Copy-once or to Translate, which is not correct. Images should be set to COPY.

I advise checking the next guide and making sure you have set the correct translation settings for field types:

- https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

Regards,
Drazen

June 17, 2024 at 8:38 am #15743932

sophiaB-2

It seems I failed to include the 'wpml_cf_preferences' => 1 in my PHP file for these images, so I've fixed that and re-saved the page and translation and the image is showing now. I am not sure why it would show as Copy-once or to Translate if nothing is set or why most images would get copied but one would not (with the same settings) but this does fix the issue. Thanks for the prompt to double-check that setting.