Forums › Forums › Search & Filter Pro › infinite scroll doesn't work
Tagged: infinite scroll
- This topic has 12 replies, 2 voices, and was last updated 6 years, 1 month ago by Anonymous.
-
Anonymous(Private) October 5, 2018 at 11:21 am #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(Private) October 5, 2018 at 5:00 pm #190239I 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?
Trevor(Private) October 5, 2018 at 6:30 pm #190263That 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. -
AuthorPosts