Static page and pagination – how to read page # from url
-
Let’s say I did a page:
http://www.example.org/my-static/
What I’d like to do is to make a browser of items in it and add pagination support.
http://www.example.org/my-static/page/2
http://www.example.org/my-static/page/3
… and so on.The question: how do I read the page numeber in PHP from inside the template page? If I was using ?page=1 I ould have used $_GET[‘page’] but how do I do in wordpress?
Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Static page and pagination – how to read page # from url’ is closed to new replies.