From 7cc4ec19a0d29410199afa8e20fa121f538e1b77 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 26 Mar 2018 09:08:05 +1100 Subject: [PATCH] Display current team in player list --- templates/player-list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/player-list.php b/templates/player-list.php index 3553594c..a9162cb6 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -172,7 +172,7 @@ foreach ( $groups as $group ): $tbody .= '' . $name . ''; if ( array_key_exists( 'team', $labels ) ): - $team = sp_array_value( $row, 'team', get_post_meta( $id, 'sp_team', true ) ); + $team = sp_array_value( $row, 'team', get_post_meta( $id, 'sp_current_team', true ) ); $team_name = sp_get_team_name( $team, $abbreviate_teams ); if ( $link_teams && false !== get_post_status( $team ) ): $team_name = '' . $team_name . '';