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 .= '';