Forums Forums Search & Filter Pro Number of results vs. displayed results

Viewing 10 posts - 1 through 10 (of 15 total)
  • Anonymous
    #7465

    Hello,

    there seems to be a bug.
    For example in one case the number of results is show as “5” (which is correct) – but there are only 4 result-items showing up?

    Any advice on this?

    Ross Moderator
    #7466

    Hey Peer

    Did you disable “auto count”? This should be disabled.

    I also just answered a similar question it may help:

    https://support.searchandfilter.com/forums/topic/filters-not-resetting-and-no-page-2-of-results/

    Let me know if the above helps.

    Thanks

    Anonymous
    #7467
    This reply has been marked as private.
    Ross Moderator
    #7469

    Hey Peer

    I can see what you saying.

    Can you identify the the 5th product which is missing from that list? I would look to see if there is any difference between that post and the others, checking things like the other categories/taxonomies that they have.

    Also, are you excluding/including any posts, categories, tags or taxonomies via the settings meta box?

    Thanks

    Ross Moderator
    #7470

    I’ve just noticed something…

    All your results are missing one item..

    Check “Domaine d’Eole” and “Familie Arbeau” – it sounds like it is possible your results template is missing the last item?

    Thanks

    Anonymous
    #7471
    <?php
    /**
     * Search & Filter Pro 
     *
     * Sample Results Template
     * 
     * @package   Search_Filter
     * @author    Ross Morsali
     * @link      http://www.designsandcode.com/
     * @copyright 2014 Designs & Code
     * 
     * 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
     * 
     * 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() )
    {
    $query->the_post();
    $myid = get_the_ID();
    	?>
    	
    	<div class="row">
    	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    	<div class="filter-results" >
    	<?php echo $query->found_posts; ?> Ergebnisse  Seite <?php echo $query->query['paged']; ?> von <?php echo $query->max_num_pages; ?>
    	
    	<div style="float:right;">
    	<?php sf_pagination_prev_next($query->query['paged'], $query->max_num_pages); ?>
    	<?php sf_pagination_numbers($query->query['paged'], $query->max_num_pages, " "); ?>
    
    	</div>
    	</div>
    	</div>
        </div>
        <div class="row">
    
        <?php
        
       
       if ($myid == '3100') {
        echo '<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">';
       
       dynamic_sidebar( 'wein' );
        echo '</div>';
      }
     
    
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		$post_type = get_post_type( get_the_ID() );
    	
    		?>
    
    	
    		
    		
    			
    			
    			
    				<?php 
    
    				switch ($post_type) {
    				    
    				    case 'wein': 
                            
                            echo '<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">';
    						echo '<div class="item-'.$post_type.'">'; 
    				    	$wine_id = get_the_ID();
    				    	$term_list = wp_get_post_terms($wine_id, 'winzer', array("fields" => "names"));
    						$title = get_the_title();
    				        $permalink = get_permalink();
    				        $name =  get_field('wine-name');
    				        $img_url =  get_field('wine-detail-image');
    
    				        if (empty($img_url)) {
    				        $img_url = 'http://www.weinamlimit.com/wordpress/wp-content/uploads/wine_empty.png';
    				       }
    				        $year =  get_field('wine-detail-year');
    				        $sf =  get_field('wine-detail-soul-faktor');
    				        $size =  get_field('wine-detail-size');
    				        echo '<div class="item-overlay"><div class="overlay-content">'.$sf.'<br>Flasche'.$size.'</div></div>';
    				        echo '<a href="'.$permalink.'" title="'.$title.'">';
    				        //echo '<img src="'.aq_resize( $img_url, '300').'" alt="'.$title.'"></a></div>';
    				        echo '<img src="'.aq_resize( $img_url, '300').'" ></a></div>';
    				        echo '<div class="wine-description"><h2><a href="'.$permalink.'" title="'.$title.'">'.$year.' '.$name.'</a></h2>';
    				        echo '<h3>'.$term_list[0].'</h3></div>';
    				        break;
    				    case 'winzer':
    				    	$grower_id = get_the_ID();
    				    	$term_list_country = wp_get_post_terms($grower_id, 'land', array("fields" => "names"));
    				    	$term_list_region = wp_get_post_terms($grower_id, 'anbaugebiet', array("fields" => "names"));
    				        $img_url =  get_field('winegrower-preview-image');
    				        $logo_url =  get_field('winegrower-logo');
    				        $title = get_the_title();
    				        $permalink = get_permalink();
    				        echo '<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">';
    						echo '<div class="item-'.$post_type.'">'; 
    						if (!empty($logo_url)){
    						echo '<div class="logo-overlay"><img src="'.$logo_url.'"></div>';}
    						echo '<a href="'.$permalink.'" title="'.$title.'">';
    				        //echo '<img src="'.aq_resize( $img_url, '600', '290' , true).'" alt="'.$title.'"></a></div>';
    				        echo '<img src="'.aq_resize( $img_url, '600', '290' , true).'" ></a></div>';
    				        echo '<div class="grower-description"><h2><a href="'.$permalink.'" title="'.$title.'">'.$year.' '.$title.'</a></h2>';
    				        echo '<h3>'.$term_list_region[0].', '.$term_list_country[0].'</h3></div>';
    				       
    				        break;
    				    
    				}
    
    		
    
    				
    
    				 ?>
    				
    			
    	
    			</div>
    
    		
    		<?php
    	}
    	?>
    
    </div>
    	<div class="row">
    	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    	<div class="filter-results" >
    	<?php echo $query->found_posts; ?> Ergebnisse  Seite <?php echo $query->query['paged']; ?> von <?php echo $query->max_num_pages; ?>
    	
    	<div style="float:right;">
    	<?php sf_pagination_prev_next($query->query['paged'], $query->max_num_pages); ?>
    	<?php sf_pagination_numbers($query->query['paged'], $query->max_num_pages, " "); ?>
    
    	</div>
    	</div>
    	</div>
        </div>
    	
    	<?php
    }
    else
    {
    	echo "No Results Found";
    }
    ?>
    

    This is my results item, should be right?

    Ross Moderator
    #7474

    This looks right… what about my other suggestions above?

    Thanks

    Anonymous
    #7475
    This reply has been marked as private.
    Ross Moderator
    #7476

    Can you supply temp admin details so I can take a look?

    Thanks

    Anonymous
    #7477
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 15 total)