Forums Forums Search & Filter Pro infinite scroll doesn't work

Viewing 10 posts - 1 through 10 (of 13 total)
  • Anonymous
    #189038

    Hi…
    I put S&F in category.php file and it works and show me the results and filter them as it must do…
    unfortunately, however, the infinite scroll does not work.

    can you help me?
    tnx
    francesco

    Trevor
    #189052

    Are you able to send me a live link/URL to your search page so I can take a look?

    Anonymous
    #189666
    This reply has been marked as private.
    Trevor
    #189670
    This reply has been marked as private.
    Anonymous
    #190197

    Hi Trevor…
    sorry for the delay in the response…

    i have fix the js error but infinite scroll doesn’t work the same…

    This is the code (more or less) that i use in category.php…

    <?php if(have_posts()) { ?>
    					
    <div class="search-filter-results-list">
    					
    <ul>
    
    <?php while(have_posts()): the_post(); ?>
    
    <li class="search-filter-result-item">
    
    <?php the_title(); ?>						
    
    </li>
    
    <?php endwhile; ?>
    
    </ul>
    						
    </div>
    					
    <?php } else { ?>
    
    <div class="search-filter-results-list" data-search-filter-action="infinite-scroll-end">
    
    <p>No results</p>
    
    </div>
    					
    <?php } ?>

    thanks for helping me

    Trevor
    #190219
    This reply has been marked as private.
    Anonymous
    #190228
    This reply has been marked as private.
    Trevor
    #190239

    I looked at (and set) the various Ajax and Infinite Scroll containers, but I can see no obvious errors. I checked the template and also I can see no obvious errors. This is a custom theme written by you, yes?

    Do you have any lazy loading on this site?

    Anonymous
    #190255
    This reply has been marked as private.
    Trevor
    #190263

    That might however be the problem.

    As you are using the Post Type Archive method, the one thing you should have (if you want to use category pages) is Category in the form as well. You already have Auto Detect on, so it should detect the category. In the final version of the site, you can hide that field with custom CSS, but I think it should be there.

    I would also test with Make searches bookmarkable ON, even if when you finish the site you might switch that off. Indeed, not having that ON might be an issue, I am not sure.

Viewing 10 posts - 1 through 10 (of 13 total)