Forums › Forums › Search & Filter Pro › Ajax and Polylang issue > 'no results found'
Tagged: ajax, no results found, polylang
- This topic has 11 replies, 2 voices, and was last updated 6 years, 5 months ago by Trevor.
-
Anonymous(Private) June 15, 2018 at 6:27 pm #180518
Hello,
I’m currently testing a new website for a client and I’m having an issue: when I activate the Polylang plug-in, selecting or deselecting any filter option to produce different results (using shortcode) will display the message ‘No results found’. When I deactivate ‘Loading results using Ajax’, the filter works fine (but naturally without the smooth transition).
Check the page/filter here: http://www.vankelst.com/wordpress/van-kelst-co-trainingen-communicatie-en-leidinggeven/I’ve searched this forum and found a topic with kind of a similar problem: https://support.searchandfilter.com/forums/topic/results-not-updating-when-using-ajax/
Can you tell me what solution was used to fix this issue?
Thank you in advance.Kind regards,
JefTrevor(Private) June 16, 2018 at 7:32 am #180536How many, and what, post types are in your search? Is Media among them? Are each and every Post Type translated by Polylang?
IF ‘Posts’ is one and there are others, try the search with just ‘Posts’ and one other, one pair at a time until you find the Post Type that is the issue (but it is often Media).
Anonymous(Private) June 17, 2018 at 3:33 pm #180566Hello Trevor, thank you for your reply.
There’s only one type of posts included in the search and none of them are translated, as of yet, in other languages than the standard language (Dutch).
I’ll try to describe the exact problem (all in the standard language):
– when Polylang is not yet activated, loading the page with all the (pre-filtered) posts and filtering the results works fine (the message ‘No results found’ is <u>not</u> displayed, only the correct filtered results)
– when Polylang is activated, loading the same page with the posts works, but filtering the results (using any of the four filters) immediately returns the message ‘No results found’
– when I deactivate ‘Loading results using Ajax’, the filtering works again (with Polylang still active)
This led me to the conclusion that there’s a possible conflict between Polylang and the use of Ajax in the filter. But I could be wrong (I’m not a programmer).
Point is that the client would like to see the smooth transition when filtering with Ajax, not the abrupt reloading when Ajax is deactivated.
Is this information enough to look into this problem?Kind regards,
Jef -
AuthorPosts