Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Infinite Scroll not loading more results

Viewing 6 posts - 1 through 6 (of 6 total)
  • Michael Ware
    #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 SFP

    Using 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 Moderator
    #226974
    This reply has been marked as private.
    Michael Ware
    #226980

    Thank you Trevor.
    Just renewed the license. Sorry ’bout that.
    Michael

    Trevor Moderator
    #227027

    Can 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

    Michael Ware
    #227631

    This worked! Thank you Trevor.
    Much appreciated,
    Michael

    Trevor Moderator
    #227633

    Thanks for letting me know. I will close this thread for now.

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

The topic ‘Infinite Scroll not loading more results’ is closed to new replies.