Forums › Forums › Search & Filter Pro › Issue with infinite scroll
Tagged: infinite scroll, search and filter
- This topic has 4 replies, 2 voices, and was last updated 4 years, 10 months ago by Trevor.
-
Anonymous(Private) January 15, 2020 at 3:24 pm #231303
Hey there
I’ve been trying to set up infinite scroll but can’t seem to get it working
You can see the page I’m currently working on here – https://love-glamping.co.uk/?theme=new&sfid=51345&_sf_s=cornwall
(I’m building a new theme for this site which is what the theme=new is in the URL, taking that out will use the current live theme and a different search.php)
I am seeing the loading icon at the bottom of the page breifly on load but that’s it
I have AJAX enable and have activated the infinite scroll, I’ve read the documentation trying to add the search-filter/results.php in to this new theme folder but I still can’t get it working and have the same results
WordPress back end form settings – https://ibb.co/4YL39NF (double checking its the correct search form as there are multiple but all seems correct)
It is a custom search form but again I can’t see anything that looks incorrect, here is the loop in my search.php
<?php if ( have_posts() ) : ?> <header class="page-header"> <h1 class="page-title"> <?php printf( /* translators: %s: query term */ esc_html__( 'Search Results for: %s', 'understrap' ), '<span>' . get_search_query() . '</span>' ); ?> </h1> <div class="filter-panel"> <h2>Where would you like to go Glamping?</h2> <?php echo do_shortcode('[searchandfilter id="51345" taxonomies=product_cat:1]'); ?> </div> </header><!-- .page-header --> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /** * Run the loop for the search to output the results. * If you want to overload this in a child theme then include a file * called content-search.php and that will be used instead. */ get_template_part( 'loop-templates/content', 'search' ); ?> <?php endwhile; ?> <?php else : ?> <?php get_template_part( 'loop-templates/content', 'none' ); ?> <?php endif; ?>
-
AuthorPosts