Forums › Forums › Search & Filter Pro › Pagination not working
Tagged: pagination
- This topic has 20 replies, 2 voices, and was last updated 8 years, 3 months ago by Trevor.
-
Anonymous(Private) July 28, 2016 at 4:03 pm #52474
The pagination for the search and filter functionality of my site is not working. The pagination selector is set as “.pagination a” as per the code below. The divs show up in the source code but the divs are empty and there are no pagination links generated from the php code.
I am using a Genesis child theme and I’m trying to filter/search custom posts that were set up using ACF. These posts are separate and distinct from my blog posts.
This is the code I currently have in the template for pagination. It’s placed after the endif of the loop and inside the results container:
<div class=”pagination”>
<div class=”nav-previous”><?php next_posts_link( ‘Older posts’, $query->max_num_pages ); ?></div>
<div class=”nav-next”><?php previous_posts_link( ‘Newer posts’ ); ?></div>
</div>Anonymous(Private) July 29, 2016 at 4:38 pm #52677I updated and but the pagination still does not seem to be working. The pagination divs are there in the source code but those divs are empty without any generated previous/next links.
My display method is set to Custom and I have forced the results to only return 10 items per page for this testing but there are definitely more items than that that are supposed to return.
Where to go from here?
-
AuthorPosts