Forums › Forums › Search & Filter Pro › Number of results vs. displayed results
- This topic has 14 replies, 2 voices, and was last updated 9 years, 12 months ago by Ross.
-
Ross Moderator(Private) November 12, 2014 at 2:20 pm #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
Ross Moderator(Private) November 12, 2014 at 2:48 pm #7469Hey 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(Private) November 12, 2014 at 2:51 pm #7470I’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(Private) November 12, 2014 at 2:55 pm #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(Private) November 12, 2014 at 3:14 pm #7474This looks right… what about my other suggestions above?
Thanks
Ross Moderator(Private) November 12, 2014 at 3:34 pm #7476Can you supply temp admin details so I can take a look?
Thanks
-
AuthorPosts