Skip Navigation

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

Problem:
The filter by custom field value of JetSmartFilters does not work on the translation page.
Solution:
The choice field should have the suggested format: "value : Label" and the value must not be translated, the label can be translated.
Relevant Documentation:

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 13 replies, has 2 voices.

Last updated by denisR-17 1 year, 9 months ago.

Assisted by: Long Nguyen.

Author Posts
April 5, 2023 at 1:29 pm #13410721

denisR-17

It shows correctly, but don't filter correctly, try to choose apartment and filter please:
hidden link

April 7, 2023 at 8:34 am #13425919

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Denis,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

I see the page Real Estate in English on your site is not working to view the filter. Can you please try to replicate the issue on the sandbox site as my colleague shared and let me know steps to replicate the issue?
hidden link

Look forward to your reply.
Thanks

April 7, 2023 at 8:39 am #13425929

denisR-17

Hi, check now please
hidden link

April 10, 2023 at 1:24 am #13434937

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

In the Polish language, on a single post "nieruchomosci" page, if I click on the ENG button to switch to the translation of the post in the English language, it will redirect to the homepage.

Do you translate all posts of the post type "nieruchomosci" completely? If not, the filter might not work in the English language.

If yes and the issue persists on your site, can you please help us to replicate the issue on the sandbox site?
hidden link

Look forward to your reply.
Thanks

April 11, 2023 at 9:45 am #13443729

denisR-17

Hi!

"In the Polish language, on a single post "nieruchomosci" page, if I click on the ENG button to switch to the translation of the post in the English language, it will redirect to the homepage." - that's static link to homepage, it should work like that.

"Do you translate all posts of the post type "nieruchomosci" completely? If not, the filter might not work in the English language." - it doesn't depend, i tried to translate and not. Problem is the same.

Hmm, I don't no why, but it seems to work normally at sandbox, settings are the same i think.

Why it doesn't work on my installation? I tried to turn off all plugins, and doesn't help 🙁

April 11, 2023 at 10:23 am #13444049

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

So we can see it is a specific issue on your site. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

April 12, 2023 at 4:55 am #13451869

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I think the issue is the value of the choice option, it should be in alphabet characters and lowercase. I've changed the option value in JetEngine > Post Type > Nieruchomości > Meta Fields >Nieruchomość > To these values: apartament, dom, dzialka, mieszkanie. Now I see the filter works correctly in the English language.

Can you please check this issue on your site again?

Look forward to your reply.
Thanks

April 12, 2023 at 9:08 am #13453347

denisR-17

Hi!
I tried, but you didn't have translated field values. Now when values are translated at string translation it didn't work.
Before when you wrote that it works, it really worked, but values on frontend were untraslated at english version.

April 12, 2023 at 9:35 am #13453913

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

Please be aware that, the option values of select, choice fields should be the same across languages, only the option label should be translated. If you want to translate the field value, please use the Text field, and refer to this documentation https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

Look forward to your reply.
Thanks

April 12, 2023 at 9:56 am #13454161

denisR-17

Thanks, now it more clear.
So if i want to show on frontend translated title of field, not untraslated value i also need to use normal text field? (attached screen)

Zrzut ekranu 2023-04-12 o 11.54.36.png
April 12, 2023 at 10:18 am #13454275

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I think it's a compatibility issue with Elementor and JetEngine to display the option value, not the option label.
In this case, I recommend contacting JetEngine support to get further assistance.

Look forward to your reply.
Thanks

April 12, 2023 at 11:16 am #13455011

denisR-17

They said, that it should work like that - show option value, not label 🙁

April 13, 2023 at 2:41 am #13460743

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

It's not a WPML issue and I'm afraid that there is nothing we can do from our side. If you see the main issue of the filter with JetSmartFilters on the translation page is resolved, please mark this ticket as Resolved.

Thanks and have a good day.