Forums › Forums › Search & Filter Pro › How to show results with Ajax
Tagged: ajax
- This topic has 6 replies, 2 voices, and was last updated 6 years, 2 months ago by
Trevor.
Viewing 6 posts - 1 through 6 (of 6 total)
-
Anonymous(Private) September 23, 2019 at 4:25 pm #221617
I’ve also tried adding in the search filter ID into the query:
$args = array( 'post_type' => 'partner', 'post_status' => 'publish', ); $args['search_filter_id'] = 6688; $partners = new WP_Query( $args );Which I saw on this page: https://searchandfilter.com/documentation/search-results/custom/
Do I need to somehow include the taxonomies into the query? I have three custom ones at the moment.
Trevor(Private) September 25, 2019 at 10:05 am #221822I have switched OFF Ajax and it seems to work for me. Looking at your code, change the
<ul>to add a class, like this:<ul class="search-results">and the change the Ajax Container from
#mainto.search-resultsThen switch Ajax back on and test. Please let me know how you get on?
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)