Forums › Forums › Search & Filter Pro › Pagination won't display
- This topic has 3 replies, 2 voices, and was last updated 9 years, 10 months ago by Ross.
-
Anonymous(Private) December 16, 2014 at 3:35 pm #9130
So I already made one template that works great with a custom-post-type archive, pagination displays and works great with AJAX.
This other page I’m doing is for news items, but the pagination won’t display at all.
The settings and files are almost identical, with the exception of the markup of the listings.Working page
This page is not workingI’m not sure what’s wrong here.
Another issue I’m having with this page is that the masonry script won’t work after I use any filters to change the results.
Ross Moderator(Private) December 16, 2014 at 10:46 pm #9166Hey Stian
The only time pagination won’t show is if you don’t have more results – could you add this to your template file so we can see how many results the plugin has:
<?php global $wp_query; echo "Results found: ".$wp_query->post_count."<br />"; ?>
If the post count is below results per page then you will not see pagination.
In regards to masonry – take a look at the first question in our FAQs – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
Thanks
Anonymous(Private) December 17, 2014 at 12:34 pm #9206Hi Ross
When changing the amount of posts per page in the settings for the searchform, the page displays the correct number of posts for that page, but pagination won’t display. We have almost 300 published posts.
Adding your snippet to the template gives me this result:
Results found: 1Here’s the page template file and this is the search & filter template.
Ross Moderator(Private) December 21, 2014 at 4:43 pm #9374Hey Stian
So the pagination is not showing because it thinks there is only 1 result – which requires no pagination – so I think the problem here is, why does it think there is only one result?
I’ve just updated the plugin today so please install the latest update to see if that fixes anything.
Also, I would take a careful look to see if you have included/excluded anything which is affecting your search results.
Let me know
Thanks
-
AuthorPosts