Forums › Forums › Search & Filter Pro › Infinite Scroll not loading more results
- This topic has 5 replies, 2 voices, and was last updated 5 years, 5 months ago by
Trevor.
-
Anonymous(Private) November 18, 2019 at 7:53 pm #226973
Hello,
I’ve implemented infinite scroll with SFP and have had great results, but this time, infinite scroll will not fetch more posts. It will only show however many posts are set for the initial load.I’ve tried dozens of variations of settings for the form, turned off almost all plugins, but nothing seems to work. The infinite scroll loader runs briefly, but that’s it. No Javascript errors that I can see.
What am I doing wrong?
Running WordPress 5.3.0
Custom child theme with Divi 4.0.6 (the latest)
Lastest version of SFPUsing a shortcode and a custom results page, below.
<?php get_header(); ?> <div class="page-banner__text-wrap"> <div class="container"> <h1 class="page-title">News Room</h1> </div> </div> <!-- /page-banner__text-wrap --> <div id="primary" class="content-area"> <main id="main" class="site-main"> <div class="entry-content"> <div class="container pt-5"> <h1 class="h2">Latest News</h1> <p>Get information on some proven solutions for increasing plant output, lowering OpEx, and extending asset life.</p> <div class="sfp-filter-wrap"> <?php echo do_shortcode( '[searchandfilter id="2036"]' ); ?> </div> <!-- /sfp-filter-wrap--> <div class="blog-wrap flex-container top" id="results-container"> <?php $news_args = array( 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'DESC', ); $news_args['search_filter_id'] = 2036; $rp = new WP_Query( $news_args ); if($rp->have_posts()) : ?> <?php while($rp->have_posts()) : $rp->the_post(); $post_date = get_the_date( 'F j, Y' ); ?> <div class="windesco-blog-post search-filter-result-item"> <a class="single-blog-post__link" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'featured-blog' ); } else { ?> <div class="single-blog-post__image-wrap"> <img src="/wp-content/themes/Divi-child/img/Winded.PNG" class="single-blog-post__image" alt="WindEsCo Logo" /> </div> <?php } ?> <div class="single-blog-post__info-box"> <div class="single-blog-post__info-box__date small pb-1"> <?php echo $post_date; ?><br /> <?php the_category(); ?> </div> <h5 class="single-blog-post__info-box__title"> <?php the_title(); ?> </h5> <p class="single-blog-post__info-box__excerpt"> <?php the_excerpt(); ?> </p> </div> <!-- / single-blog-post__info-box --> </a> </div> <?php endwhile; wp_reset_postdata(); ?> <?php else: ?> <p data-search-filter-action="infinite-scroll-end">No results found. Please reset filtration to see more results.</p> <?php endif; ?> </div><!-- /blog-wrap flex-container --> </div><!-- /container --> </div> <!-- .entry-content --> </main> <!-- #main --> </div> <!-- #primary --> <?php get_footer();
Trevor(Private) November 19, 2019 at 4:44 pm #227027Can you try setting a test page up using the method described here:
https://support.searchandfilter.com/forums/topic/divi-4-templates-blog-module/#post-226630
-
AuthorPosts