diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php
index c3449470..1769fc58 100644
--- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php
+++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php
@@ -5,7 +5,7 @@
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin/Meta_Boxes
- * @version 2.0.3
+ * @version 2.0.5
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -94,14 +94,7 @@ class SP_Meta_Box_Player_Statistics {
|
-
-
-
-
-
+
|
$label ): if ( $key == 'team' ) continue; ?>
@@ -115,7 +108,7 @@ class SP_Meta_Box_Player_Statistics {
|
-
+
|
$label ): if ( $column == 'team' ) continue;
diff --git a/templates/player-statistics-league.php b/templates/player-statistics-league.php
index f17ac9f2..5bba4d01 100644
--- a/templates/player-statistics-league.php
+++ b/templates/player-statistics-league.php
@@ -1,4 +1,13 @@
positions();
$player_sections = array();
@@ -53,11 +54,15 @@ if ( is_array( $leagues ) ):
}
}
- sp_get_template( 'player-statistics-league.php', array(
+ $args = array(
'data' => $player->data( $league->term_id, false, $section_id ),
'caption' => $caption,
'scrollable' => $scrollable,
- ) );
+ );
+ if ( ! $show_teams ) {
+ $args['hide_teams'] = true;
+ }
+ sp_get_template( 'player-statistics-league.php', $args );
endforeach;
sp_get_template( 'player-statistics-league.php', array(