Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues where changes in the image order in a property's media gallery are not synchronizing across translations in different languages, this might be due to a compatibility issue between WPML and the Houzez theme.
Solution:
We recommend taking the following steps to address this issue:
1. Ensure you have a full backup of your site before proceeding.
2. Add the following code to your theme’s functions.php file:

// WPML - Workaround for compsupp-8361
add_action( 'save_post_property', function( $post_id ) {

// check if the property has translations
$trid = apply_filters( 'wpml_element_trid', null, $post_id, 'post_property' );
if ( ! $trid ) {
return;
}

// Get the translations
$translations = apply_filters( 'wpml_get_element_translations', null, $trid, 'post_property' );
// Get the gallery images
$fave_prop_images = get_post_meta( $post_id, 'fave_property_images', false );

foreach ( (array) $translations as $lang => $translation ) {
// delete the gallery
delete_post_meta( $translation->element_id, 'fave_property_images' );

foreach ( $fave_prop_images as $image_id ) {
// translate the image if needed
$image_id = apply_filters( 'wpml_object_id', $image_id, 'attachment', true, $lang );
// Re-add the image to the gallery
add_post_meta( $translation->element_id, 'fave_property_images', $image_id );
}
}
}, 1000 );

3. Update the properties once to reflect the changes.

Please note that this solution might become outdated or may not apply to your specific case. If this solution does not resolve your issue, 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 further assistance is needed, please open a new support ticket at 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 19 replies, has 0 voices.

Last updated by Shekhar Bhandari 5 days, 3 hours ago.

Assisted by: Shekhar Bhandari.

Author Posts
April 30, 2026 at 9:18 pm #18007024

christinaM-14

Hi,

I am managing a real estate website using the Houzez theme and WPML. My default language is Greek, and I have translations in English and Russian. I am facing the following three issues:

1. Advanced Translation Editor (ATE) wipes out content:
Even with "Translate all content automatically when the editor opens" disabled, making a minor change (like adding a period) to the Greek source text causes the ATE to completely delete the existing English/Russian translation for that segment. The editor treats the modified segment as entirely new and leaves the field empty, causing massive loss of work. I have "Use bigger segments" enabled, but the issue persists.

2. Theme Translation Strings reverting to English:
The translations I enter in the Houzez -> Translation panel frequently revert to English on their own. This seems linked to this errata: https://wpml.org/errata/houzez-theme-translations-revert-when-the-default-language-is-not-english/.
Note: I do not use a child theme, but I use the Code Snippets plugin. Can I apply the fix provided in the errata via Code Snippets instead of functions.php?

3. Media Gallery order not syncing via Translation Editor:
When I change the order of images in a Greek property, the new order is never reflected in the English/Russian versions through the Translation Editor (pencil icon). Even if I open the translation editor, the gallery order remains in its initial state. To fix this, I am forced to bypass the WPML editor and manually enter the standard WordPress Editor for the English and Russian versions to re-order the photos there. The custom field for images is already set to "Copy", but it doesn't seem to trigger an update.

Could you please investigate these issues?
Thank you

May 4, 2026 at 11:01 am #18010570

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Hello there,

Thank you for contacting WPML support. I’d be happy to assist you with this issue.

Could you please share a few page URLs where the content loss can be seen?

Regarding point 2, you can use a code snippet plugin for implementation.

Also, for the media issue, please provide the relevant URLs where the problem is visible.

Further, To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

May 4, 2026 at 12:08 pm #18010757

christinaM-14

Hi,

I have prepared a test environment for you. I created a property titled 'WPML Test Property' (Property ID: 101010). I have currently kept it in Draft status

Important Note: As this is a live production site, please do not perform any bulk actions, site-wide settings changes, or plugin deactivations without informing me first. If you identify the cause of the issues, please let me know exactly what needs to be fixed before applying any major changes.

Please use the WPML Test Property (ID: 101010) to reproduce the issues:

1. For Content Loss (ATE):

Action: Please make a small text change in the Greek description and save.

Result: Open the Advanced Translation Editor; you will see that the previously saved translations have disappeared.

2. For Media Gallery Sync:

Note: I have uploaded images numbered 1, 2, 3, and 4 to make the verification easy.

Action: Try to re-order these numbered images in the Greek version of the property.

Result: You will notice that the image order does not sync to the English/Russian versions, even though the field fave_property_images is set to 'Copy'. (you can check also)

I am attaching the screenshots for your reference and providing the login credentials in the private area below. I look forward to your findings."

May 4, 2026 at 12:12 pm #18010761

christinaM-14

I am ready to provide admin access. Please enable the private information field for me to share the credentials securely.

May 4, 2026 at 12:12 pm #18010764

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Enabled the private reply for you.

May 5, 2026 at 5:03 am #18012143

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Hello there,

I have made some changes on our end for the site, (not on your site), can you check the ate issues now, it should be fixed.

Regarding the media gallery synchronization issue, is it okay if I install a plugin to check how the orders are saved in the database?

Look forward to your reply.

Thanks

May 5, 2026 at 6:28 am #18012412

christinaM-14

I have updated the Greek text of the test property by removing the sentence 'Βρίσκεται σε μια ήσυχη γειτονιά, ιδανική για οικογένειες'.

The issue is still here and it's very inconsistent:

In English, the editor automatically split the remaining text into two separate paragraphs

In Russian, the exact same Greek source remains as one single block

Most importantly, all previous translations were deleted in both languages once I made this small change in the original Greek text.

You have my permission to install the plugin you mentioned to check the database and the media gallery synchronization. I have a full backup ready.

Στιγμιότυπο οθόνης 2026-05-05, 09.22.58.png
Στιγμιότυπο οθόνης 2026-05-05, 09.22.34.png
May 5, 2026 at 6:41 am #18012502

christinaM-14

Additionally, I just noticed that the editor is losing other data as well, which shouldn't be affected. For instance, it completely lost the URL in the Russian translation, even though it was previously set. My client had also mentioned that other untranslated elements are being lost during the process, and now I have confirmed it with the URL issue.

May 5, 2026 at 6:57 am #18012550

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Hello there,

Most importantly, all previous translations were deleted in both languages once I made this small change in the original Greek text.

You made changes to the whole text and our translations memory see's it as a new segment so the translations is not showing up. I would say it's normal, as WPML tries to look for existing segment and in your case it didn't find it.

I would suggest you to disable "bigger segments" if you are making changes multiple times so only a smaller section is affected.

Regarding the url, I saved it and it's working for me without any issues, when I update it.

Regarding the gallery synchronization, it looks like a compatibility issue, I have created a public sandbox site here, can you please install the housez theme and create a sample property to see if you can replicate the issue here?

Login url: hidden link

Look forward to your reply.

Thanks

May 5, 2026 at 7:21 am #18012610

christinaM-14

I have uploaded the theme files, but I need your help with the following in the sandbox:

WPML is missing: I cannot find the WPML plugin in the sidebar or the plugins list to start the configuration.

Theme Activation: The Houzez theme requires a purchase code to install its mandatory plugins (like Houzez Functionality). Since I cannot use my live license key here, could you please manually enable the necessary environment so I can create a 'Property' and test the gallery sync?

Please let me know once the sandbox is ready for a test post.

May 5, 2026 at 7:28 am #18012633

christinaM-14

ps. To clarify, the images themselves are not missing. The issue is with the Media Gallery ordering.

Here is the exact bug:

I create a property in Greek with images in order 1-2-3. I translate it, and the order 1-2-3 correctly appears in English and Russian.

If I later go back to the original Greek post and change the order to 3-2-1, this change is NOT reflected in the translated versions. The translations stay stuck with the old order (1-2-3).

This means that WPML/Houzez is failing to synchronize the gallery sequence updates after the initial translation is made. This is the compatibility issue I need you to fix.

May 6, 2026 at 4:22 am #18015452

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Hello there,

I’m currently checking with our team to confirm if we have a license key for the Houzez theme.

In the meantime, could you please try generating a test key to register the theme? This might be a quicker way to proceed. You may also want to contact their support team to confirm whether multiple sites can be registered with the same license.

I look forward to your reply.

Thanks

May 6, 2026 at 7:53 am #18016005

christinaM-14

Hello,

I have successfully registered the Houzez theme on the sandbox site and created a test property (Ακίνητο 1) to demonstrate the issue.

To make it as clear as possible, I uploaded images numbered 1, 2, 3, and 4.

The Test:

In the Greek (original) version, I changed the sorting order of the images.

Even after saving and updating the translation, the English version does not sync the new image order. It remains stuck in the initial upload sequence.

This confirms that the gallery sorting is not being copied/synchronized between languages, even with WPML's translation settings active.

You can now check the property "Ακίνητο 1" and its English translation to see the discrepancy in the gallery order yourself.

I look forward to your fix.

Best regards,

Στιγμιότυπο οθόνης 2026-05-06, 10.50.12.png
Στιγμιότυπο οθόνης 2026-05-06, 10.50.04.png
May 6, 2026 at 7:54 am #18016049

christinaM-14

check and the urls 😉

Στιγμιότυπο οθόνης 2026-05-06, 10.53.58.png
Στιγμιότυπο οθόνης 2026-05-06, 10.53.49.png
May 7, 2026 at 4:34 am #18018839

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

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

Hello there,

When editing the properties here, the section to add images aren't showing up, is it due to license issue? hidden link Can you let me know how you added the media here?

Look forward to your reply.

Thanks