Title: wp-admin/admin-ajax.php?page=2
Last modified: August 30, 2016

---

# wp-admin/admin-ajax.php?page=2

 *  Resolved [mp3stevo](https://wordpress.org/support/users/mp3stevo/)
 * (@mp3stevo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wp-adminadmin-ajaxphppage2/)
 * 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.
 * [https://wordpress.org/plugins/wp-pagenavi/](https://wordpress.org/plugins/wp-pagenavi/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wp-adminadmin-ajaxphppage2/#post-6562405)
 * Does your navigation does work with the default WordPress Navigation in the first
   place [http://codex.wordpress.org/Function_Reference/next_posts_link](http://codex.wordpress.org/Function_Reference/next_posts_link)
   or [http://codex.wordpress.org/Function_Reference/previous_posts_link](http://codex.wordpress.org/Function_Reference/previous_posts_link)?
 *  Thread Starter [mp3stevo](https://wordpress.org/support/users/mp3stevo/)
 * (@mp3stevo)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wp-adminadmin-ajaxphppage2/#post-6562546)
 * Hi Lester! I just tried it with the default WP nav and it does the same thing.
   Any pointers? Thanks!
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/wp-adminadmin-ajaxphppage2/#post-6562548)
 * Not too sure, probably best to ask it in [https://wordpress.org/support/forum/how-to-and-troubleshooting](https://wordpress.org/support/forum/how-to-and-troubleshooting)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-admin/admin-ajax.php?page=2’ is closed to new replies.

 * ![](https://ps.w.org/wp-pagenavi/assets/icon.svg?rev=977997)
 * [WP-PageNavi](https://wordpress.org/plugins/wp-pagenavi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-pagenavi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-pagenavi/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-pagenavi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-pagenavi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-pagenavi/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/wp-adminadmin-ajaxphppage2/#post-6562548)
 * Status: resolved