diff --git a/sportspress-functions.php b/sportspress-functions.php
index 671794b9..46dc7c0c 100644
--- a/sportspress-functions.php
+++ b/sportspress-functions.php
@@ -1212,8 +1212,17 @@ if ( !function_exists( 'sp_get_table_html' ) ) {
$output .= '
';
- foreach( $row as $value ):
- $output .= '| ' . $value . ' | ';
+ foreach( $row as $key => $value ):
+ $output .= '';
+ if ( $key == 'name' ):
+ $permalink = get_post_permalink( $team_id );
+ $output .= '';
+ endif;
+ $output .= $value;
+ if ( $key == 'name' ):
+ $output .= '';
+ endif;
+ $output .= ' | ';
endforeach;
$output .= '
';