From 9ee254805f665ecab1e189c92d200c2197756f42 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 1 Oct 2015 11:21:02 +1000 Subject: [PATCH] Get latest events first --- includes/class-sp-player.php | 4 ++-- includes/class-sp-team.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-sp-player.php b/includes/class-sp-player.php index b2523cbd..257a90da 100644 --- a/includes/class-sp-player.php +++ b/includes/class-sp-player.php @@ -5,7 +5,7 @@ * The SportsPress player class handles individual player data. * * @class SP_Player - * @version 1.9 + * @version 1.9.6 * @package SportsPress/Classes * @category Class * @author ThemeBoy @@ -183,7 +183,7 @@ class SP_Player extends SP_Custom_Post { 'post_type' => 'sp_event', 'numberposts' => -1, 'posts_per_page' => -1, - 'order' => 'ASC', + 'order' => 'DESC', 'meta_query' => array( 'relation' => 'AND', array( diff --git a/includes/class-sp-team.php b/includes/class-sp-team.php index 2d4935c9..661d8fd6 100644 --- a/includes/class-sp-team.php +++ b/includes/class-sp-team.php @@ -5,7 +5,7 @@ * The SportsPress team class handles individual team data. * * @class SP_Team - * @version 1.9.5 + * @version 1.9.6 * @package SportsPress/Classes * @category Class * @author ThemeBoy @@ -17,7 +17,7 @@ class SP_Team extends SP_Custom_Post { 'post_type' => 'sp_event', 'numberposts' => 1, 'posts_per_page' => 1, - 'order' => 'ASC', + 'order' => 'DESC', 'post_status' => 'future', 'meta_query' => array( array(