Forums › Forums › Search & Filter Pro › Pagination Issue
- This topic has 6 replies, 2 voices, and was last updated 4 years, 5 months ago by Trevor.
-
Anonymous(Private) December 11, 2019 at 1:08 pm #228848
Hi,
After following your previous advice from this previous thread: https://support.searchandfilter.com/forums/topic/social-media-sharing-issue/ I was able to get the listings to display correctly using an actual page within WordPress.However, unfortunately the pagination at the bottom of the page isn’t displaying the same as the live site (which uses the ‘As an Archive’ method). I need to it to display individual clickable numbers for each results page (see link to live URL below this thread).
I tried copying the code from the blog-structure.php file from the theme into the custom results.php file for searchfilterpro but it didn’t work. The code is shown below:
<?php if($qode_options['blog_pagination_type'] == 'standard' && $qode_options['pagination'] != "0") { qode_pagination($wp_query->max_num_pages, $blog_page_range, $paged); } elseif ($qode_options['blog_pagination_type'] == 'prev_and_next'){ ?> <div class="pagination_prev_and_next_only"> <ul> <li class='prev'><?php echo wp_kses_post(get_previous_posts_link($icon_left_html)); ?></li> <li class='next'><?php echo wp_kses_post(get_next_posts_link($icon_right_html)); ?></li> </ul> </div> <?php } ?> <?php } ?>
Any help much appreciated.
Anonymous(Private) June 4, 2020 at 1:14 pm #247407Hi,
Just revisiting this issue, I installed the WP-PageNavi plugin and it works great!.However, I still have the text ‘No post were found.’ showing underneath the pagination even when there ARE posts/results shown. I’m not sure where this is coming from I suspect the themes blog template, just not sure why it’s displaying. This is the code I have at the bottom of the results.php file:
<div class="pagination"> <?php /* example code for using the wp_pagenavi plugin */ if (function_exists('wp_pagenavi')) { echo "<br />"; wp_pagenavi( array( 'query' => $query ) ); } ?> </div> <?php } else { echo "No Results Found"; } ?>
-
AuthorPosts