This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing issues with PDF files appearing in the wrong language search results on their multilingual website. They were using Ivory Search to limit search results by language and had uploaded PDFs for specific languages. However, PDFs uploaded for one language were appearing in search results for other languages. Additionally, they were unsure about the best practices for uploading media so that it only appears in the search results for the corresponding language.
Solution:
deactivate the media duplication option, which makes a media file available in all languages when a page is translated. This option can be found in the WPML settings and applies to all media types, including PDFs: https://wpml.org/documentation/getting-started-guide/media-translation/#using-different-images-and-media-across-languages.
We also explained that the search functionality is handled by the theme/plugin and should automatically filter content by language in almost all cases. Make sure that all pages containing the documents are correctly translated and that the PDFs are linked correctly according to the language.
Lastly upload media in the correct language section of the media library (by using the WordPress topbar language switcher) and checking the WPML > Settings > Media translation(plugin) to ensure that media files are not duplicated but translated.
If the solution provided is not relevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket in our forum: https://wpml.org/forums/forum/english-support/.
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.
This topic contains 17 replies, has 2 voices.
Last updated by 9 months, 3 weeks ago.
Assisted by: Alejandro.