Pagination in a Page
-
I’ve set up a separate News page template that I’d like to call all my recent posts in. I’ve used the regular loop, and I am able to get the first page index of posts. However, when I click on the Previous Posts link, the same first page index comes up again. The main code I’m using is
<?php query_posts('posts_per_page=5'); ?>
, and here is the full code:I’ve also tried these other methods without success:
https://pastewp.org/6479
https://pastewp.org/6482What am I doing wrong?
- The topic ‘Pagination in a Page’ is closed to new replies.