Forums Forums Search & Filter Pro Issue with infinite scroll

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #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; ?>
    Trevor
    #231308
    This reply has been marked as private.
    Trevor
    #231310

    Note that, for infinite scroll, you need to use the contents of the infinite scroll template, not that of the standard results.php. The file in your child theme folder still needs to be named results.php.

    Anonymous
    #231913

    Just wanted to say this really helped and figured it out in no time

    Also renewed license and your support is second to none – I love this product!

    Trevor
    #231917

    Thanks for getting back to me. I will close this thread for now.

Viewing 5 posts - 1 through 5 (of 5 total)