Forums › Forums › Search & Filter Pro › Filters and Infinite scroll
Tagged: filters, infinite scroll, infinite_scroll
- This topic has 27 replies, 2 voices, and was last updated 6 years, 3 months ago by Anonymous.
-
Trevor(Private) August 6, 2018 at 2:11 pm #184590
I am sorry I didn’t get back to you earlier, but I have been away over the weekend and I am catching up. We need to identify if this is our plugin causing this.
Are you able to set up a test page and copy of the filter, but using the shortcode method, as detailed here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/
Anonymous(Private) August 7, 2018 at 6:05 pm #184806I have set the new page following your instructions and filters work fine (I haven’t found issues). So I think the point is with the ajax container, used in the js script. For some reason, it repaints results sometimes, while it doesn’t other times. Should I use any specific class or id attribute in the results page html? I have search filters in a sidebar container while results appear in another container. Is that correct?
Thank you!
Best
Trevor(Private) August 8, 2018 at 11:29 am #184839On the activitats-2 filter you have the shortcode method selected. using our infinite scroll template, you need not make container selections, and in any event there is no Ajax Container to set. If you have placed your own code in this template file, you may need to specify the Infinite Scroll containers. It is important that the pagination block is not inside the Infinite Scroll Container.
The other example you gave uses the Custom method. Here you will almost certainly need to specify the:
Ajax Container
Infinite Scroll Container
Result/Post Selector/ContainerThe Ajax Container cannot be the same as the Infinite Scroll Container.
Anonymous(Private) August 9, 2018 at 10:49 am #184925Thank you for all your tips. Happily, now it seems to be working. The point was the ajax container. I was using one which could not paint the no results container when no results were found. I tried with a parent container and now it works well. It has been more difficult to get it done than expected but I’m happy to have got it.
Thank you for your help Trevor.
Best regards
-
AuthorPosts