Configuring League Table Columns
League table columns are controlled at two levels: the global Configure screen defines which columns exist and how they are calculated; the individual league table edit screen controls which of those columns are visible and in what order they appear.
Step 1: Define Columns in Configure
Go to SportsPress > Configure (or Teams > Configure) and open the Columns section. Each column defined here becomes available in every league table.
For each column you can set:
Name — the label displayed in the table header
Abbreviation — a shorter label used when space is limited
Equation — the formula used to calculate the column's value. The equation builder lets you reference result variables (e.g.
$goalsfor), outcome variables (e.g.$win,$loss), and built-in counters ($eventsplayed,$streak,$form,$last5,$last10,$gamesback,$homerecord,$awayrecord).Precision — the number of decimal places to display
Priority — the sort priority used when ordering the standings. Columns with a higher priority number are evaluated first when sorting. The sort direction (ascending or descending) is also set per column here.
Columns defined in Configure are shared across all league tables. Changing an equation here affects all tables that display that column.
Step 2: Control Visibility Per Table
Open an individual league table's edit screen. The League Table meta box in the main column shows the Values view. In the table header row, each column has a checkbox and the column label.
Checked — the column is visible on the frontend for this table.
Unchecked — the column is hidden for this table only.
By default, all columns are checked (visible). Uncheck a column to hide it without deleting it from the global configuration.
The order columns appear in the table header is the order they are defined in the global Configure screen. There is no per-table drag-and-drop reordering; to change column order, reorder the columns in Configure.
Relationship Between Configure and the Table
The Configure screen is the single source of truth for column definitions. The league table edit screen reads the full list of columns from Configure and renders a checkbox for each one. The sp_columns post meta field on a table stores only the list of column slugs that are checked (visible). When sp_columns is not set or is empty, all columns default to visible.
The Sort by Override
The Details meta box on the table includes a Sort by dropdown. When set to Default, the table sorts by the column priorities defined in Configure (highest-priority column first). When set to a specific column or Name, the Configure priorities are ignored and the table sorts by that single value using the Sort Order direction (Ascending or Descending).
