Forums › Forums › Search & Filter Pro › Ajax results not loading in Elementor Grid
Tagged: Elementor
- This topic has 34 replies, 3 voices, and was last updated 5 years, 11 months ago by Ross.
-
Anonymous(Private) November 28, 2018 at 1:12 am #194757
Hello, I’m using the Elementor post grid and have managed to integrate with the search form as per your instructions.
I’m currently using this as the test page: https://jstern.dev9.site/news-insights-2/
I can see that search and filter is working when ajax is disabled. However, when I enable ajax, the results fail to update (using category filter). I’m using OR for Field relationships.
Also I couldn’t find the setting for ajax container to input the Elementor selector .elementor-widget-posts. Not sure if this is it?: https://prnt.sc/lnuffr
Still on the same form, I would like to filter posts by year only. How can I make that work? Please see screenshots of PSD mockup.
https://prnt.sc/lnuele
https://prnt.sc/lnufc2Thanks!
Trevor(Private) December 5, 2018 at 3:58 pm #195388In the plugin folder, in a templates sub-folder, are two exemplar files, and our plugin uses the one named results.php by default. This documentation tells you to place one of these two files in a search-filter sub-folder of your child theme. Obviously, if you are using infinite scroll, copy that one, otherwise copy the other.
Then, with that file in the new search-filter sub-folder, rename the file to results.php if needed. It must always be named that, or named the same ID as each for the forms (allows more than one template to be used).
The documentation for this is here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/
-
AuthorPosts