Problem:
When I visit my page, the houses display in the language this site is currently in. But when I enter a filter and search, the search results will change the language of the result to dutch somehow. I'm using WPML for translation.
The strange thing is, this only happens when you're not logged in. When I am logged in, the search results work just fine.
Solution:
The problem you mentioned above is abnormal, in case it is a compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) After doing some more research, user found out that because of the page is reloading it's AJAX, the translation is lost. So he added some custom PHP codes to fix it:
https://toolset.com/forums/topic/search-results-show-in-different-language-with-wpml/#post-626401
Relevant Documentation:
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 6 replies, has 2 voices.
Last updated by Luo Yang 6 years, 1 month ago.
Assisted by: Luo Yang.