Skip to content Skip to sidebar

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 2 replies, has 1 voice.

Last updated by Otto 7 months, 3 weeks ago.

Assisted by: Otto.

Author Posts
May 1, 2025 at 6:08 pm #16987195

mahmadS

Background of the issue:
I am trying to create a new post in the Houzez theme and link it to an internal translated property. When I translate the post, the link to the property in the translated language should point to the translated version.

Symptoms:
The link to the property in the translated language keeps pointing to the English version instead of the translated version.

Questions:
Why does the link to the property in the translated language point to the English version?
How can I ensure that links to properties in translated posts point to the correct language version?

May 1, 2025 at 6:09 pm #16987211

mahmadS

I have prepared a Duplicator package with only the theme and its required plugins. The package also has a sample post that show the issue. Please enable the private reply to me.

May 1, 2025 at 7:05 pm #16987248

Amit
Supporter

I have enabled the private box so you can upload the duplicator package. Due to the holidays, we have an unusual waiting time, so it might take some time for one of my colleagues to take a deep look at the issue.

You should also know that we have a few reported issues with the Houzez theme. We have tried to collaborate with the author, but their replies, so far, have been relatively slow.

May 6, 2025 at 1:44 pm #17002023

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I managed to see the issue. The URL is available to edit in ATE, but I understand you need it to be translated automatically.

To achieve that, in the functions.php file, add the following:

add_filter( 'houzez_property_permalink', function( $url, $post_id ){  
    return apply_filters( 'wpml_permalink', $url );  
}, 10, 2 );

I created a new post with a link, and it worked. For the old post, I made a small change in the original, and when updating the translation, the URL was fixed.

Can you please give it a try?

❌ Please make a full website backup before proceeding ❌

Best Regards,
Otto