steadyvibe
Member
Posted 3 years ago #
Has anyone had problems using the posts_nav_link tag? It works ok, but then it gets to the last page and you click next page it brings up not found page because there are no more pages to display. Shouldn't is just stop displaying the next page if there are no more pages after the current one?
Are there any better tags to use for Next and Previous page buttons?
steadyvibe
Member
Posted 3 years ago #
I was using this code before but it only worked on the home page and none of the next pages.
<?php next_posts_link('« Previous Entries') ?>
<?php previous_posts_link('Next Entries »') ?>
steadyvibe
Member
Posted 3 years ago #
If i went back to using:
<?php next_posts_link('« Previous Entries') ?>
<?php previous_posts_link('Next Entries »') ?>
Does anyone have any idea why it on page 2 (eg: http://www.steadyvibe.com/page/2/), it does not display a previous page button even thought here are pages 3 (eg: http://www.steadyvibe.com/page/3/) and 4 (eg: http://www.steadyvibe.com/page/4/) after it?
kencheung
Member
Posted 3 years ago #
I had the same problem with posts_nav_link until I changed the "show at most" from x days to x posts (admin:options:reading menu).