Forums › Forums › Search & Filter Pro › Infinite Scroll Duplicate Results
Tagged: duplicate, infinite scroll
- This topic has 1 reply, 1 voice, and was last updated 5 years, 8 months ago by Trevor.
Viewing 2 posts - 1 through 2 (of 2 total)
-
Anonymous(Private) February 20, 2019 at 8:13 pm #202814
My Site:
http://dev2.themeridiangroup.com/newravenna.com/inspiration/Right now, I have 17 posts for testing purposes, all with unique images. It’s showing 17 results but some are duplicates. Nothing I’ve tried seems to fix it. By the way, this page is showing a shortcode instead of a slider.
I have the Infinite Scroll Container set as
.search-filter-results-list
.My code:
<?php /** * Search & Filter Pro * * Sample Results Template * * @package Search_Filter * @author Ross Morsali * @link https://searchandfilter.com * @copyright 2018 Search & Filter * * Note: these templates are not full page templates, rather * just an encaspulation of the your results loop which should * be inserted in to other pages by using a shortcode - think * of it as a template part * * This template is an absolute base example showing you what * you can do, for more customisation see the WordPress docs * and using template tags - * * http://codex.wordpress.org/Template_Tags * */ if ( $query->have_posts() ) { ?> <div class='search-filter-results-list'> <?php while ($query->have_posts()) {$query->the_post(); ?> <?php if ( has_post_thumbnail() ) : ?> <?php $caption = get_the_post_thumbnail_caption(); ?> <a class="inspiration-result-link" href="<?php the_post_thumbnail_url("full"); ?>" data-lightbox="inpspiration" data-title="<?php echo $caption; ?>"> <div class='search-filter-result-item'> <?php the_post_thumbnail("large"); ?> </div> </a> <?php endif; ?> <?php } ?> </div> <?php } else { ?> <div class='search-filter-results-list' data-search-filter-action='infinite-scroll-end' style="display: block;"> <span>End of Results</span> </div> <?php } ?>
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)