Forums Forums Search & Filter Pro Infinite Scroll Duplicate Results

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #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
    }
    ?>
    Trevor
    #202850

    Are you setting the sort order to Random? Either in our form, or in the theme or another plugin?

    I have raised the documentation page issue with the person who can fix it. Thanks for pointing it out.

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