Search Page > Custom Sort By Options


  • Darryl
    Newbie 10 points
    July 9, 2016 at 10:36 am

    Dear All,

    Reference: Theme setup > Page setup > Search page > Custom Sort By Options

    May I know what is the code to generate a return search based on auction expiry? For example, auctions that expire in a couple of hours will be on top of results and those expiring in 30 days will show up last.

    Your help will be greatly appreciated!

    Thanks, as always.


  • Josh
    Super Guru 13,875 points
    July 11, 2016 at 3:22 pm

    Hello Darryl,
    Try this query:

    Expiring soonest (low-high) [orderby=listing_expiry_days&order=asc]
    Expiring latest (high-low) [orderby=listing_expiry_days&order=desc]

    Note:This only works for auctions with Auction Length selected in the frontend Add Listing Page


  • Darryl
    Newbie 10 points
    July 12, 2016 at 3:28 am

    Thanks, Josh. Helpful as always!


  • Josh
    Super Guru 13,875 points
    July 12, 2016 at 1:16 pm

    You’re welcome Darryl.Always glad to help 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes