WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Pagination Links

[Resolved] Pagination Links

  • Hi guys
    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>

    just after:
    <?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?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Pagination Links’ is closed to new replies.
Skip to toolbar