Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a theme installed but my problem is that the theme doesn't provide a next page function. So if I have 20 posts, and I put 10 in the Blog pages show at most in Reading Setting of Wordpress Setting, it only shows the 10 posts and then I can't anymore see the remaining posts on my home because it doesn't have any next button. I want to have a next page button so that the users can still view the other posts by clicking the next button. How can I do this? Need help. Asap! Thank you!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can use the functions next_posts_link() and previous_posts_link() for that.

You have to place these functions in your theme where you want the links to be seen. Possible templates for that are your archive.php, category.php depending on your needs.

<div class="navigation">
    <div class="next-posts"><?php next_posts_link('&laquo; Older Entries') ?></div>
    <div class="prev-posts"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>

More info:

http://codex.wordpress.org/Function_Reference/next_posts_link

http://codex.wordpress.org/Function_Reference/previous_posts_link

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.