From 775eeae218f814052c82b07c89df85bc4dff32be Mon Sep 17 00:00:00 2001 From: ThemeBoy Date: Fri, 6 Dec 2013 22:30:19 +1100 Subject: [PATCH] Link league table team column to team page --- sportspress-functions.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 .= '';