WordPress.org

Support

Support » Themes and Templates » Find current page number in paginated post

Find current page number in paginated post

  • I have a request to display different sidebars on different pages of a paginated post. I have look at all the options for the wp_link_pages tag, and I cannot find a simple way to know if I am on page 1, 2, ect… I am not using the default settings for the permalinks, so the URL only shows “/#/” at the end of the post. I could strip that value out of the URL, but I want to know is there a tag or function that will tell me what page of a post I am on?

  • The topic ‘Find current page number in paginated post’ is closed to new replies.
Skip to toolbar