diff --git a/templates/player-details.php b/templates/player-details.php index e8ecf0e2..882d58c6 100644 --- a/templates/player-details.php +++ b/templates/player-details.php @@ -34,6 +34,14 @@ if ( $nationality ): $common[ __( 'Nationality', 'sportspress' ) ] = $country_name ? ( $show_nationality_flags ? '' . $nationality . ' ' : '' ) . $country_name : '—'; endif; +$position_names = array(); +$positions = get_the_terms( $id, 'sp_position' ); +foreach ( $positions as $position ): + $position_names[] = $position->name; +endforeach; + +$common[ __( 'Position', 'sportspress' ) ] = implode( ', ', $position_names ); + $data = array_merge( $metrics_before, $common, $metrics_after ); if ( $current_teams ): @@ -64,4 +72,5 @@ endforeach; $output .= ''; ?> - \ No newline at end of file + +
\ No newline at end of file