WordPress.org

Forums

[resolved] Older Entries link not working... (3 posts)

  1. wavio1
    Member
    Posted 3 years ago #

    I new to WordPress and I'm slowly getting a feel for it. However, I've created a blog page and the "older entries" link is not working. When you click it, it loads the same page again and shows the same 5 posts. Obviously I have more that 5 posts in my blog.
    As you can see I've set the page to display 5 posts at a time...

    [code moderated - use the pastebin for any code over the forum limit of 10 lines]

    can anybody help???

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    try:

    <?php query_posts('posts_per_page=5&paged='.get_query_var('page')) ?>

    http://codex.wordpress.org/Class_Reference/WP_Query#Pagination_Parameters

    if that does not work, try:

    <?php query_posts('posts_per_page=5&paged='.get_query_var('paged')) ?>
  3. wavio1
    Member
    Posted 3 years ago #

    And the second one wins!

    Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Topic