From ba122151b777f781d8a496daf495c1807a0f710b Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 25 Sep 2016 08:57:29 +1000 Subject: [PATCH] Fix default event orderby query in calendar --- includes/class-sp-calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-sp-calendar.php b/includes/class-sp-calendar.php index 97525f81..16a72c7e 100644 --- a/includes/class-sp-calendar.php +++ b/includes/class-sp-calendar.php @@ -83,7 +83,7 @@ class SP_Calendar extends SP_Custom_Post { $this->order = 'ASC'; if ( ! $this->orderby ) - $this->orderby = get_post_meta( $this->ID, 'sp_orderby', true ); + $this->orderby = 'post_date'; if ( ! $this->from ) $this->from = get_post_meta( $this->ID, 'sp_date_from', true );