I am a food blogger with a website in 2 languages; English and Italian.
I am running slickstream as the "search" plugin on my site.
The problem I am having is that slickstream shows up results from both languages to the same user when the search terms are the same or share the same letters.
For example, if an American is searching for "focaccia," he will see both the English post and the Italian post, which is not ideal.
According to slickstream, the only way to not show up the result is to unindex the pages that I don't want to show up. I've done this for now, but that is also not ideal as the page won't show up in Google search.
Is there a way through WPML to fix this so that slickstream only sees pages from the language the user is on?
The link to my site is hidden link for the English site and hidden link for the Italian one.
You can try enabling language information for the front-end AJAX calls. To do so, go to WPML → Languages, scroll down to the Language filtering for AJAX operations section and check the "Store a language cookie to support language filtering for AJAX" option.
In case this option doesn't solve the problem, unfortunately, there is no other solution in WPML settings. Custom coding may be required to address the issue.
Thanks, Andrey, I tried, but it didn't work out. I'll try to find another search plugin that is compatible with WPML. If you know of any, please let me know.