From a7ebb8292eb5450024d1f284607aa6a70f740ebb Mon Sep 17 00:00:00 2001 From: ThemeBoy Date: Tue, 10 Dec 2013 03:27:14 +1100 Subject: [PATCH] Link player list player column to player page --- sportspress-functions.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/sportspress-functions.php b/sportspress-functions.php index 46dc7c0c..79aa3292 100644 --- a/sportspress-functions.php +++ b/sportspress-functions.php @@ -1255,12 +1255,21 @@ if ( !function_exists( 'sp_get_list_html' ) ) { $output .= '' . '' . '' . ''; - foreach( $data as $team_id => $row ): + foreach( $data as $player_id => $row ): $output .= ''; - foreach( $row as $value ): - $output .= '' . $value . ''; + foreach( $row as $key => $value ): + $output .= ''; + if ( $key == 'name' ): + $permalink = get_post_permalink( $player_id ); + $output .= ''; + endif; + $output .= $value; + if ( $key == 'name' ): + $output .= ''; + endif; + $output .= ''; endforeach; $output .= '';