AJAX call pagination
-
I have a custom sorting function that runs a custom post type query. It works great, but wp_pagenavi() uses the page it’s on to update the links in the pagination. For example, on load of the page the pagination is something like .com/page/2. However, after sorting the list of posts from Newest to Oldest, it queries admin-ajax and then the updated pagination is wp-admin/admin-ajax.php?page=2.
Thanks.
- The topic ‘AJAX call pagination’ is closed to new replies.