Title: wisemantis's Replies | WordPress.org

---

# wisemantis

  [  ](https://wordpress.org/support/users/wisemantis/)

 *   [Profile](https://wordpress.org/support/users/wisemantis/)
 *   [Topics Started](https://wordpress.org/support/users/wisemantis/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wisemantis/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wisemantis/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wisemantis/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wisemantis/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wisemantis/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Number My Post Pages] Some positive feedback for developer](https://wordpress.org/support/topic/plugin-number-my-post-pages-some-positive-feedback-for-developer/)
 *  [wisemantis](https://wordpress.org/support/users/wisemantis/)
 * (@wisemantis)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-number-my-post-pages-some-positive-feedback-for-developer/#post-1243984)
 * No problem. Glad I could help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Number My Post Pages] Some positive feedback for developer](https://wordpress.org/support/topic/plugin-number-my-post-pages-some-positive-feedback-for-developer/)
 *  [wisemantis](https://wordpress.org/support/users/wisemantis/)
 * (@wisemantis)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-number-my-post-pages-some-positive-feedback-for-developer/#post-1243980)
 * I had the same problem, and I believe I resolved the problem regardless of permalink
   structure.
 * It looks like the standard way to get the current page number of a single post
   is to use “global $page”. I found this in **wp-includes/post-template.php** in
   function **wp_link_pages**.
 * So in **number-my-post-pages-plugin/numbermypostpages.php** if you replace
 * >  $cururlarr=explode(“/”,selfURL());
   >  $curpagenum=$cururlarr[count($cururlarr)-
   > 1];
 * with
 * > global $page;
   >  $curpagenum=$page
 * it should show the right active page number.

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