Sort Search Result by a speciafic date custom field

  • Edmund
    Edmund
    Newbie
     
    11 points

    Hi,
    My site link is http://www.sourcenote.co.za

    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.
    meta_key=frontpage&meta_value=yes&orderby=eventdate&posts_per_page=100

    Thank you


    Josh
    Josh
    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.