I have event listings and I am using the Geodirectory plugin. I want to order the events by the date the event is being held, with the nearest upcoming event being shown first.
Geodirectory use event_dates_asc
for this kind of query.
So, I have used the following shortcode:
[wp_show_posts id="14475" settings="orderby=event_dates_asc"]
However, it is not working.
I have debugged to make sure the query is being pulled in, which it is:
array(5) { ["order"]=> string(4) "desc" ["orderby"]=> string(15) "event_dates_asc" ["post_type"]=> string(8) "gd_event" ["posts_per_page"]=> int(10) ["post_status"]=> array(1) { [0]=> string(7) "publish" } }
I am just wondering whether there is something I am missing.
Thanks, Gary