[Resolved] Pagination Links
I have never added pagination links in to a theme of mine before so could someone please help?
I have a news page showing posts from 3 news categories, and a sub-page for each news category, but obviously with the news page showing posts from all 3, there are quite alot of posts.
I have put the following:
<div class="pagination"> <ul> <li class="older"><?php next_posts_link('Older') ?></li> <li class="newer"><?php previous_posts_link('Newer') ?></li> </ul> </div>
<?php endwhile; ?>
I have then gone in to the Reading settings and set number of posts to 10, my “older” link appears at the bottom of the list of 10 posts but when clicked, it just refreshes the same 10 posts.
Any help please?
- The topic ‘[Resolved] Pagination Links’ is closed to new replies.