Fix default event orderby query in calendar

This commit is contained in:
Brian Miyaji
2016-09-25 08:57:29 +10:00
parent 5c6fb6aefa
commit ba122151b7

View File

@@ -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 );