Box Score and Player Performance
The Player Performance meta box (also referred to as the box score) is where you record per-player statistics for an event. It appears below the Results meta box on the event editor and shows a separate table for each team.
The Performance Table
Each team has its own performance table. The table columns are driven by the sp_performance post type — whatever performance variables you have configured appear as column headers (e.g., Goals, Assists, Yellow Cards, Red Cards).
Each row represents one player assigned to the event for that team. The columns are:
Drag handle — Drag rows to reorder players.
# — The player's squad number for this event. Pre-filled from the player's
sp_numberpost meta, but can be overridden here.Player — The player's name (read-only label).
Position — A dropdown to assign a position for this event. Pre-filled from the player's profile position, but can be changed per event.
Performance stat columns — One input per performance variable. Enter numeric values. Fields for equation-type variables are omitted from input (they are calculated). Fields for
time-format variables acceptm:ssnotation.Status — A dropdown with two options:
Starting Lineup (
lineup) — The player started the match.Substitute (
sub) — The player came on as a substitute.
Substitute selector — Visible only when Status is set to Substitute. Select which player this person replaced from the dropdown.
The Total row at the bottom of each table provides a row for entering or viewing the team's total for each stat column (stored against player ID 0).
Adding Players
Players are added to the event via the Teams meta box (the Players checklist within each team slot). They appear as rows in the performance table once checked and saved. New rows appear at the bottom of the table for any newly added players.
Column Visibility
If sportspresseventperformance_columns is set to manual, checkboxes appear in the column headers. Check a column to include it in the frontend display. Uncheck it to hide it from the box score while still allowing data to be entered and used in equations.
Minutes (Timed Stats)
When a performance variable has the timed property enabled (the default for number-format stats), and a non-zero value is entered for that stat, minute fields appear below the stat input. Enter the minute at which each occurrence happened (e.g., 23 for a goal scored in the 23rd minute). These minute values populate the timeline if the Timelines module is active.
Send Off
"Send off" refers to a player being removed from the game, which is tracked through the Status field in conjunction with the substitute selector. Setting Status to Substitute and leaving the substitute selector at None means the player came off without a replacement — effectively a send-off or injury substitution with no replacement.
Frontend Display
On the event page, the box score renders as a table per team. Columns shown are determined by which columns have data (in auto mode) or which are checked (in manual mode). The Position column and # column can be hidden via the corresponding settings options (sportspress_event_show_position, sportspress_event_show_player_numbers).
