WordPress.org

Ready to get started?Download WordPress

Forums

Pagination with Custom Loop sorted by Numeric Custom Field (2 posts)

  1. strawberryjam88
    Member
    Posted 2 years ago #

    Hi! After hours of googling, I still can't seem to figure it out.
    It's sorting correctly right now, but there is no pagination.

    I put this in functions.php, linking it back to a page template. Here is my code:

    http://pastebin.com/ukAXSh2g

    Thanks for the help!
    And if necessary: http://strawberry.neverlasting.net/new-loop

  2. strawberryjam88
    Member
    Posted 2 years ago #

    Solved it with this piece of code:
    http://pastebin.com/7iqiMiZp

    The only problem is when you click the individual entries, the next/previous links aren't sorting by my custom field. Is it possible to sort by my custom field only if clicked from the custom loop page? I don't want to change the sorting site wide..

Topic Closed

This topic has been closed to new replies.

About this Topic