Sort Search Result by a speciafic date custom field

  • Edmund
    11 points

    My site link is

    90% of my listings are EVENT listings, each with a start and end date custom field I’ve created. I’ve tried many ways to create a shortcode to display listing in a eventdate order. But simply using eventdate in the query string doesn’t do much – I suspect I need and additional piece of code to read numerical value or rather DATE value something to that effect.

    Please can someone help.

    This is one of the combination I’ve tried.

    Thank you

    Super Guru
    13,887 points

    Hello Edmund
    Try this orderby=meta_value&meta_key=eventdate&order=ASC

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

You must be logged in to reply to this topic.