Skip to content Skip to sidebar

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

Problem:
You are trying to translate images using WPML Media Translation from English to Chinese (ZH) and Malay (MS). Although the WPML Media Translation tool indicates that the translations are complete, the Chinese version of the page still displays the English version of the image instead of the Chinese version.
Solution:
We recommend the following steps to resolve this issue:
1. Update WPML to version 4.8.
2. Navigate to WPML > Settings > Custom XML Configuration and add the following code:

<wpml-config><custom-fields><custom-field action="copy" type="post-ids" sub-type="attachment">fave_property_images</custom-field></custom-fields></wpml-config>

3. Make a minor edit to the original image and save the changes. Then, recheck to see if the translated page is displaying the correct translated image.

If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 problem persists, please open a new support ticket with us for further assistance.

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 23 replies, has 0 voices.

Last updated by teng-huatN 1 month, 2 weeks ago.

Assisted by: Kor.

Author Posts
August 27, 2025 at 10:52 am #17351457

teng-huatN

I deactivated all plugins except Houzez related and WPML related.
Issue still persist.

August 27, 2025 at 12:41 pm #17351914

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. It seems to work when I switch themes. Could you please switch theme and insert the custom XML configuration? I will check on the theme issue on my sandbox site. We can follow up here https://wpml.org/forums/topic/custom-xml-configuration-will-not-load-when-houzez-theme-is-activated/ regarding the custom XML configuration not loading issue.

August 28, 2025 at 9:52 am #17354330

teng-huatN

Mr. Kor,
Since we were able to resolve the Custom XML Configuration issue, I have done the following:

1. pasted the code you gave into the xml config page
2. created a new property Test 1 so that we do not have issue from the past property
3. translated the image for the Test 1 ZH
4. Purge All using LiteSpeed cache
5. Purge browser cache

The issue still remains. The zh image is not displayed. Still showing the en image

3. Translated media for ZH.png
2. Created New Property Test 1.png
1. pasted xml code.png
August 28, 2025 at 3:25 pm #17355935

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've corrected the settings for you in the page custom fields options. Could you please check now? hidden link .

You should be able to translate the images using the media translation now.

August 29, 2025 at 9:28 am #17357416

teng-huatN

Can you please let me know what were the settings in the page custom fields options you corrected so that I know what to do in the future in case a similar issue occurs.

August 29, 2025 at 5:26 pm #17358576

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. On the primary language page here hidden link , scroll down and configure "fave_property_images" custom field to "copy" as shown in the attached screenshot.

Screenshot_78.png
August 30, 2025 at 2:16 am #17358962

teng-huatN

Is this something I need to do for this particular listing/property only, or is it something I need to do for every property?
If for every property, is there a system-wide / site-wide setting in wpml that I can do that will duplicate the setting for every property?

September 1, 2025 at 2:26 pm #17363145

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. You only need to configure that option once, and it will apply to all your existing and new listings. For existing listings, you’ll just need to resave the primary language page so the changes can take effect.

September 2, 2025 at 12:52 am #17364189

teng-huatN

OK. Thank you very much for all your assistance to resolve this issue.
Very much appreciated.