Forums › Forums › Search & Filter Pro › Ajax refresh
Tagged: ajax
- This topic has 10 replies, 2 voices, and was last updated 4 years, 8 months ago by Trevor.
-
Anonymous(Private) May 26, 2020 at 5:28 pm #245950
Hi there,
I have some troubles to get the ajax display working properly. That’s the first time I use Search & Filter Pro so I guess it’s a classic configuration issue, but after 2h I can’t find out the problem.
I’m working on a simple blog where I need to display an archive of articles from different categories with the ability to filter the articles by categories with a select dropdown. So I set up S&F plugin following the indications from https://searchandfilter.com/documentation/search-results/as-an-archive.
– In Display results, I’ve set As an archive
– In the filename of the template I’ve set archive.php
– Load results using Ajax is checked
– I’ve set .articles-grid as container for ajax results
– I’ve embed the generated shortcode on my pageOn the front-end, after selecting one of the category, the page refresh and display the archive.php template. My aim is to update the content of the ‘.articles-grid’ staying on the same page.
What do I miss?
Thank by advance for your help.
JeremyAnonymous(Private) May 27, 2020 at 10:43 am #246039If the search works without Ajax, there is a good chance that the Ajax container needs to be changed from the #main (WordPesss) default setting in our form.
I’m not sure to understand… I’ve already set .articles-grid as container for ajax results. Do I have to change it to a div with #main ID?
-
AuthorPosts