Fix default event orderby query in calendar
This commit is contained in:
@@ -83,7 +83,7 @@ class SP_Calendar extends SP_Custom_Post {
|
|||||||
$this->order = 'ASC';
|
$this->order = 'ASC';
|
||||||
|
|
||||||
if ( ! $this->orderby )
|
if ( ! $this->orderby )
|
||||||
$this->orderby = get_post_meta( $this->ID, 'sp_orderby', true );
|
$this->orderby = 'post_date';
|
||||||
|
|
||||||
if ( ! $this->from )
|
if ( ! $this->from )
|
||||||
$this->from = get_post_meta( $this->ID, 'sp_date_from', true );
|
$this->from = get_post_meta( $this->ID, 'sp_date_from', true );
|
||||||
|
|||||||
Reference in New Issue
Block a user