I was working on a project last night and I found that I needed to paginate a post and have this format of navigation:
<< Page 1 / Total 6 >>
Where “<<” and “>>” are arrows linking to the next and previous pages of the post.
I’ve managed to figure out how to insert text in between the “<<” and “>>” but is there a way for me to get/echo the current post page number and the total number of pages for that post?
Much thanks for any help!
- The topic ‘How to get post page number?’ is closed to new replies.