Sort Search Result by a speciafic date custom field

WordPress Business Themes Forums Responsive Themes Music Theme Sort Search Result by a speciafic date custom field

Sort Search Result by a speciafic date custom field

May 6, 2015
Edmund Edmund
  • 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

    May 6, 2015 at 6:10 pm
  • Josh
    Josh
    Super Guru 13,887 points

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

    May 7, 2015 at 12:19 pm
Viewing 2 posts - 1 through 2 (of 2 total)

Didn't find what you were after?

Chat with us now

or contact our support team