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.
You might find something suitable for your project.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.