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

  1. strawberryjam88
    Posted 4 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:


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

  2. strawberryjam88
    Posted 4 years ago #

    Solved it with this piece of code:

    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