Skip to main content

Event Outcomes

Event Outcomes define the possible results of an event from a single team's perspective — for example, Win, Loss, and Draw. Each outcome is a WordPress post of type `sp_outcome`. Outcomes are used in events to record how each participating team fare…

Updated today

Event Outcomes

Event Outcomes define the possible results of an event from a single team's perspective — for example, Win, Loss, and Draw. Each outcome is a WordPress post of type sp_outcome. Outcomes are used in events to record how each participating team fared, and they feed into league table column equations.

Navigate to SportsPress > Configure to see the full list, or go to SportsPress > Configure > Event Outcomes > View All to manage individual records.

Fields

Each outcome has the following fields, visible in the Configure screen summary table and editable in the individual edit screen:

  • Label — The display name shown on events and in league tables (for example: Win, Loss, Draw).

  • Variable — The slug used to reference this outcome in equations, prefixed with $ when used in the equation builder (for example: $win). Set when the outcome is first published; read-only after publishing to prevent breaking existing equations.

  • Abbreviation — The short form displayed in streak indicators (for example: W, L, D). Defaults to the first letter of the label if left blank.

  • Color — A hex color used for visual indicators associated with this outcome.

  • Condition — The rule that triggers automatic detection. See the Automatic Detection section below.

  • Description — Internal notes displayed only in the admin. Does not appear on the front end.

Automatic Detection

The Condition field controls whether SportsPress fills in this outcome automatically when event results are entered. The available condition options reference the Primary result designated in the Event Results section.

The condition options are:

  • — (dash) — No automatic detection. The outcome must be set manually on each event.

  • Most [Primary Result] — Assigned to the team with the higher primary result value.

  • Least [Primary Result] — Assigned to the team with the lower primary result value.

  • Equal [Primary Result] — Assigned when both teams have the same primary result value.

  • Default — A fallback assigned when no other condition is matched.

For a standard Win/Loss/Draw setup, configure Win as "Most Goals," Draw as "Equal Goals," and Loss as "Least Goals." When you save an event with only result values filled in and outcomes left blank, SportsPress will fill in outcomes automatically on save.

Manual vs Automatic

Outcomes on an event display as greyed out with the label "(Auto)" when they have been assigned automatically. If you manually select an outcome on an event, that selection overrides the automatic rule for that event.

If no outcomes have a condition set (all show a dash), automatic detection is disabled for all outcomes and every outcome must be entered manually on each event.

How Ties Are Handled

When two teams have the same primary result value, the outcome with the Equal [Primary Result] condition is assigned to both teams. If no outcome is configured with the Equal condition, both teams will have no automatically assigned outcome for that event.

Adding an Outcome

  1. Go to SportsPress > Configure.

  2. In the Event Outcomes section, click Add New.

  3. Enter the Label (title) in the post title field.

  4. In the Details meta box, set the Variable, Abbreviation, Color, and Condition.

  5. Optionally add a description in the Excerpt field.

  6. Set the display Order in the Attributes box.

  7. Click Publish.

To edit an existing outcome, click its Edit button in the Configure screen table.

Did this answer your question?