Skip Navigation

[Resolved] Custom search filters show in the wrong language

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

Problem: I am using WPML with Toolset on my site. I have a custom search View with several search filters, set to update with AJAX. When the page loads, the translated search options are shown as expected. After updating a search filter, the filters are shown in the default language.

Solution: Go to WPML > Language and check the checkbox "Store a language cookie to support language filtering for AJAX".

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Susan Siow 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1129013
1.png

I have translated the English strings which are contained in the search bar into Chinese with WPML String Translation.

When the page is switched to Chinese, the texts in the search bar change to Chinese, which is nice. However, when I click the Chinese items (any item) in the search bar, it will automatically revert to the default language (English) and I will never get the Chinese search results.

Please help soon, thanks!

link: hidden link

#1129267

Hi, please go to WPML > Language and check the checkbox "Store a language cookie to support language filtering for AJAX", then save the settings. Then clear your browser cache and try again. Let me know if the problem is not resolved.

#1129780

My issue is resolved now. Thank you!