WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] query_posts with pagination (older entries link) (5 posts)

  1. MultiformeIngegno
    Member
    Posted 2 years ago #

    Hi guys! :)
    This is the code I use for a custom template:
    http://pastebin.com/LX7Lw3Kg

    I'd like to have a link "Older entries" to allow users to browse also older posts.. how can I obtain that?

    Thanks in advance,
    Lorenzo

  2. MultiformeIngegno
    Member
    Posted 2 years ago #

  3. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    try to move the query (with the integrated 'paged' parameter) to before the line with if(have_posts())

  4. MultiformeIngegno
    Member
    Posted 2 years ago #

    Uhm.. no luck unfortunately.
    I tried also with the code provided here:
    http://www.rlmseo.com/blog/wordpress-pagination-in-custom-loop/

    Still no luck..

  5. MultiformeIngegno
    Member
    Posted 2 years ago #

    Finally! I got it working! This is the code I used:
    http://pastebin.com/kUrv8VgV

    :)

Topic Closed

This topic has been closed to new replies.

About this Topic