Event order should be descending for streak calculation
This commit is contained in:
@@ -179,7 +179,7 @@ class SP_League_Table extends SP_Custom_Post{
|
||||
'numberposts' => -1,
|
||||
'posts_per_page' => -1,
|
||||
'orderby' => 'post_date',
|
||||
'order' => 'ASC',
|
||||
'order' => 'DESC',
|
||||
'meta_query' => array(
|
||||
array(
|
||||
'key' => 'sp_format',
|
||||
|
||||
@@ -201,7 +201,7 @@ class SP_Player_List extends SP_Custom_Post {
|
||||
'post_type' => 'sp_event',
|
||||
'numberposts' => -1,
|
||||
'posts_per_page' => -1,
|
||||
'order' => 'ASC',
|
||||
'order' => 'DESC',
|
||||
'meta_query' => array(
|
||||
array(
|
||||
'key' => 'sp_format',
|
||||
|
||||
Reference in New Issue
Block a user