Forums › Forums › Search & Filter Pro › Pagination or Infinite Scroll
- This topic has 12 replies, 3 voices, and was last updated 5 years, 5 months ago by Trevor.
-
Trevor(Private) May 24, 2019 at 4:34 pm #212491
mmm
Not sure if it is needed or not. The ‘standard’ PHP/HTML structure for Infinite Scroll looks like this:
<div class='name_of_ajax_container_class' if ( $query->have_posts() ) { ?> <div class='name_of_infinite_scroll_container_class'> <?php while ($query->have_posts()) { $query->the_post(); ?> <div class='name_of_infinite_scroll_post_selector_class'> // post output here </div> <?php } ?> </div> <?php } else { ?> <div class='name_of_infinite_scroll_container_class' data-search-filter-action='infinite-scroll-end'> <span>End of Results</span> </div> <?php } </div>
How does your template compare to that in structure?
-
AuthorPosts