Forums › Forums › Search & Filter Pro › Ajax Pagination doesn’t work
- This topic has 15 replies, 3 voices, and was last updated 5 years, 1 month ago by
Anonymous.
-
Ross Moderator(Private) March 19, 2020 at 4:55 pm #237237
Hi Erez
I’ve had a look at this and Trevor is correct.
Essentially, your pagination is hand crafted, which means its not modifiable by a plugin (like ours).
You have 2 approaches,
1) Use WP functions for pagination (such as paginate_links etc) – you can can pretty much recreate what you already have using WP functons instead – then our plugin can hook into this and modify accordingly.
2) If you prefer to build your own pagination, know that our pagination is not done like
mysite.com/search-results/page/1
, it is done using query params, so you the URL would look like:mysite.com/search-results/?sf_paged=1
(sf_paged
is our variable for tracking paged)Option 1 is the preferred option, because if we decide to change how pagination works, you will be protected (we do actully plan to do this in our next major version).
Let me know your thoughts and how you get on.
-
AuthorPosts