Polylang filtering content
-
Hello,
I am trying to make search form that searches in a series of custom posts that have no language assigned, inside a website where most of the pages are bilingual EN/FR, and properly doubled and dealt with by Polylang.
But these custom posts are user generated through a form, and therefore contain both English and French text, and a custom function displays them correctly in connection with the current language the user is browsing the website.
So I made an Ajax search, restricted to these custom post, and disabled Polylang compatiblity. I also tried overriding the standard WordPress results page (with both methods) and doing a soft-check only in “query compatibility”.
This all seems meant for my case!
But, even though the results appear doing typing, when I want to display the search page with all of them, it only works in one the two languages of the website, English. In French, I get a “no results” page, event though they appeared during typing.
If I set the search button to display the first result, it works fine. But no way to get the page with all the results.
I know this is the result of Polylang filtering (if I deactivate Polylang, it works fine).
Why is Polylang filtering results that are not handled by their plug-in? (another topic, for Polylang).
But anyways, do you see a solution to my problem?
Also, I noticed that when I override the standard WP search, then the main search of the website doesn’t work anymore (even though I turned off “try to replace the theme search form with Ajax’s form” in ‘Sources & basics’)
Thank you for your help, this is very frustrating and this plug-in seems like it can do it!
Best regards,
Nicolas
- The topic ‘Polylang filtering content’ is closed to new replies.