Skip to content Skip to sidebar

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

Problem:
The client was trying to translate permalinks slugs for the custom taxonomies set from the Houzez theme but encountered issues where the expected translated slugs were not appearing, and instead, the original language slug was still being used. Additionally, the client faced 404 errors on the translated pages.

Solution:

Note: While using the theme Houzez, make sure that you translate the custom taxonomies that come with the theme only from the page: WPML -> Settings -> Taxonomies Translation section (all the taxonomies that come with the theme are set here). You shouldn't add the strings that end in "_rewrite_base" for translation in the WPML -> String Translation, as it will give error 404 on the translation pages.

For the strings that show on the property page (ex: "Garage size" or "Description"), you should check on WPML -> String Translation and translate those strings from there.

1. We recommended flushing the website's cache and then navigating to WP Admin -> Settings -> Permalinks to click the "Save" button, which flushes the permalinks.

2. We advised checking the documentation for using the Houzez theme with WPML, specifically for translating taxonomies:

3. We instructed the client to add strings for translation from WPML -> String Translations -> Translate texts in admin screens, and to change the string language to "BG" as they are set to English by default.

4. We clarified that the string "features" from the domain "houzez_settings]property_feature_rewrite_base" should not be translated in WPML -> String Translation, as it is should be translated in WPML -> Settings -> Taxonomies Translation section.

5. For the author page translation, we explained that the bio/description found on the author's page in the backend is translatable using WPML -> String Translation -> More options. Also, the theme Houzez has a custom post type "Agents" and offers the possibility to translate it as any other default post type.

If this solution does not seem relevant to your situation, please open a new support ticket with us.

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.

This topic contains 34 replies, has 2 voices.

Last updated by damienC-18 1 year, 10 months ago.

Assisted by: Marsel Nikolli.

Author Posts
December 15, 2023 at 2:26 pm #15073587

damienC-18

I am trying to: translate permalinks slugs from the Houzez theme

Link to a page where the issue can be seen: hidden link

I expected to see: hidden link
(change agentsiya by agency in the strings translation, kindly check screenshots)

Instead, I got: hidden link

I would have assumed string translation to be the tool to use to translate slugs, this is what your doc says: https://wpml.org/documentation/getting-started-guide/translating-page-slugs/

But that doesn't work here, and some permalinks slugs are not even displayed as being able to be translated as well.

Thank you for your help.

Best regards,

Damien

taxonomies.jpg
string translations.jpg
permalinks.jpg
December 15, 2023 at 5:25 pm #15075553

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you.

1) I would first suggest you flush the cache of the website, then go to WP Admin-> Settings -> Permalinks and just click the button "Save", that will flush the permalinks.

2) Please consider checking the documentation related to using the theme Houzez with WPML:
https://wpml.org/documentation/theme-compatibility/creating-multilingual-real-estate-sites-with-houzez-theme-and-wpml/#translating-taxonomies

* Also this might be helpful to set properly the taxonomies for translation:
https://wpml.org/documentation/getting-started-guide/translating-post-categories-and-custom-taxonomies/

I hope this information will be helpful, let me know if you have any more questions.

Regards,
Marsel

December 18, 2023 at 10:33 am #15082463

damienC-18

Hi,

That doesn't help. I don't want to change taxonomy but slug part of the permalink.

I did click "save" on Permalink and refreshed my tab as well in incognito mode.

However whenever I try to access hidden link (check "agency") it redirect to hidden link

I don't know why.

I need to have two different slugs for Bulgarian and English.

Did you check my screenshots?

Thank you for your attention.

December 18, 2023 at 3:47 pm #15085789

Marsel Nikolli

Hi,

I am sorry for any misunderstanding from my part.

1) Can you please check if the checkbox on the page WPML -> Settings -> "Slug translations" section is checked?

2) In order to investigate this issue and understand it better, I would need a temporary access to your website.

Please make a full backup of your site (files and database) and confirm it in your next reply.

I would need to access your site's WP-admin.
Your next reply is set to private for you to provide the username and password details.

Thanks,
Marsel

December 18, 2023 at 4:01 pm #15086045

damienC-18

Hi,

Yes, "slug translations" is checked.

Here are an admin credentials:

wpml
*** removed

Thank you for your help.

December 18, 2023 at 4:19 pm #15086143

Marsel Nikolli

Thanks for providing the access.

I was able to check your website and as you can see from the video here (hidden link) you need to add the strings for translation from the page: WPML -> String Translations -> Translate texts in admin screens ». More detailed info related can be found: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

After you register the strings for translations you need to change the string language to "BG" as they are set to English by default.

I translated "agentsiya" but the link: hidden link
shows "Page Not Found" error, could you please check if the pages are correctly translated?

Let me know if this works out for you,
Marsel

December 19, 2023 at 2:41 pm #15093927

damienC-18

Hi Marsel,

Thank you so much for the video it's been very helpful and I've been able to add and translate the strings I wanted.

I have no idea why my English translations are returning 404 now... because hidden link is a page that exist on the backend.

I just created a property in Bulgarian and English and the English version return a 404 too!

Here: hidden link

This is an English translation of : hidden link

You can see as an Admin that the English version is done and published in the WP Editor:

hidden link

I have no idea what's going on and how to fix that. How could we troubleshoot this please?

Best regards,

Damien

December 19, 2023 at 3:58 pm #15094749

Marsel Nikolli

Hi Damien,

Thanks for the update.

1) Could you please try clearing the website cache (server side included) and see if the issue persists?

2) If the issue persists, I would suggest you check if the issue happens in a minimal setup, that meaning:
- keep the theme you have
- activate the WPML plugins with the necessary plugins to run the theme
- disable all the other themes

After, check if the issue happens again, this will help checking if there is any plugin conflict or plugin incompatibility causing the issue.

Let me know how it goes,
Marsel

December 20, 2023 at 1:21 pm #15103107

damienC-18

Hi,

There's no cache server side or WP-side while I'm buildling the website.

As you can see yourself with the admin login, I've deactivated all plugins except WPML-related ones, the issue still persists, so it might come from WPML?

December 20, 2023 at 4:16 pm #15104719

Marsel Nikolli

Hi,

I was able to check a bit further on the staging site, activating some of the necessary plugins to run the website and the property management part, I created a new testing property(hidden link) in the main language and after translated it in English and it works.

I also noticed that some of the properties are working as well, like this one for ex: hidden link

In order to further translate the text like "Description" on the property page, you should check for "admin_texts_houzez_options" on the WPML -> Strings Translation page.

I would suggest you check that the properties are translated correctly and maybe try making a small change on the title of the properties just to trigger an update on the default language as well as on the translation.

Let me know how it goes.
Marsel

December 20, 2023 at 4:39 pm #15104925

damienC-18

Hi Marsel,

Indeed, I went and reactivated all plugins at once and the issue is actually now resolved for all the previous pages where it was before.

I'm not sure what happened but I'm relieved it's working now.

Thank you very much for the supplemental help about the Property's page elements.

I did really appreciate your professionalism and the excellence of your support.

Best regards.

December 22, 2023 at 11:00 am #15116329

damienC-18

Hi,

It doesn't work.

I string translated "harakteristika" with "features" but the url isn't updated:

hidden link

should be

hidden link

December 22, 2023 at 11:18 am #15116459

damienC-18

Also: "In order to further translate the text like "Description" on the property page, you should check for "admin_texts_houzez_options" on the WPML -> Strings Translation page."

I find nothing when I do this, please check the screenshot.

You still have the same admin access rights to check those two issues for yourself.

Thank you for your help.

string-translations.jpg
December 22, 2023 at 11:33 am #15116525

damienC-18

The Home in breadcrumb is not being taken into account as well.

breadcrumb-2.jpg
breadcrumb-1.jpg
December 22, 2023 at 1:42 pm #15118225

Marsel Nikolli

Hi Damien,

1) For the slug translation, please make sure they are properly translated even on the page: WPML -> Settings -> Taxonomies Translation section (check attached image)

2) Related to the text like "Description", sorry as maybe I didn't express myself correctly, you need to look for the strings like "Description" while having selected the domain admin_texts_houzez_options" (please check attached image).

3) As for the breadcrumbs, I am not sure how are they added to the website as from the RankMath SEO plugin I noticed that they are disabled (image attached).

* Note: I notice that you are using LiteSpeed server which is known for its great cache/speed feature, I would suggest you check for any configuration/mechanism on the server and try flushing the whole website cache. (In some cases depending on the hosting company it might take a bit till it refreshes and it affects the website).

* I tired activating/deactivating the plugin WP Super Cache, but not change.

Let me know how it goes,
Marsel

slugs.png
breadcrumbs.png
Screenshot 2023-12-22 135450.png