diff --git a/templates/player-list.php b/templates/player-list.php
index 900678fd..e813c111 100644
--- a/templates/player-list.php
+++ b/templates/player-list.php
@@ -126,6 +126,23 @@ foreach ( $groups as $group ):
if ( intval( $number ) > 0 )
$limit = $number;
+ $thead = '' . '';
+
+ if ( ! is_array( $labels ) || array_key_exists( 'number', $labels ) ):
+ if ( in_array( $orderby, array( 'number', 'name' ) ) ):
+ $thead .= ' ' . '';
+
$tbody = '';
foreach( $data as $player_id => $row ): if ( empty( $group->term_id ) || has_term( $group->term_id, 'sp_position', $player_id ) ):
@@ -217,22 +234,9 @@ foreach ( $groups as $group ):
endif;
$output .= '# ';
+ else:
+ $thead .= '' . __( 'Rank', 'sportspress' ) . ' ';
+ endif;
+ endif;
+
+ foreach( $labels_head as $key => $label ):
+ if ( $key !== 'number' && ( ! is_array( $columns ) || $key == 'name' || in_array( $key, $columns ) ) )
+ $thead .= ''. $label . ' ';
+ endforeach;
+
+ $thead .= '
| # | '; - else: - $output .= '' . __( 'Rank', 'sportspress' ) . ' | '; - endif; - endif; - - foreach( $labels_head as $key => $label ): - if ( $key !== 'number' && ( ! is_array( $columns ) || $key == 'name' || in_array( $key, $columns ) ) ) - $output .= ''. $label . ' | '; - endforeach; - - $output .= '
|---|