Past events orderby date not working
-
Hi there
I have trouble trying to order past event according to ‘event_start_date’.I tried the arg in shortcode
[past_events orderby="event_start_date" order="DESC"]
Even tried adding orderby/order args in function output_past_events() (in /wp-event-manager/shortcodes/wp-event-manager-shortcodes.php)
$args_past = array( /* HACK */ 'orderby' => 'event_start_date', 'order' => 'DESC', /* end hack */ 'post_type' => 'event_listing', 'post_status' => array('expired'), 'posts_per_page' => -1 );
but got no luck.
orderby: ‘title’ works, but orderby: ‘event_start_date’ always returns an ordering by ID…Please advise.
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Past events orderby date not working’ is closed to new replies.