Skip to main content

Event Results

Event Results are the scored values that teams accumulate in a single event — for example, Goals in soccer or Points in basketball. Each result is a WordPress post of type `sp_result`. When you edit an event, the results section shows a column for e…

Updated today

Event Results

Event Results are the scored values that teams accumulate in a single event — for example, Goals in soccer or Points in basketball. Each result is a WordPress post of type sp_result. When you edit an event, the results section shows a column for each defined result for each participating team.

Results differ from outcomes: a result is a raw numerical value (how many goals a team scored), while an outcome is the interpretation of those values (Win, Loss, or Draw). Results feed directly into outcome auto-detection and can also be referenced in league table column equations.

Navigate to SportsPress > Configure to see the list, or use the View All link in the Event Results section to manage individual records.

Fields

Each result has the following fields, visible in the Configure screen summary table:

  • Primary — A radio button selecting which result is the primary result. The primary result is the one referenced by outcome conditions (for example, setting "Most Goals" as the Win condition requires Goals to be the primary result). The default is the last result in the list.

  • Label — The display name shown on event pages and in the results entry table (for example: Goals, Points, Runs).

  • Variables — The pair of variable slugs generated from the label. For a result with slug goals, the variables are goalsfor and goalsagainst. These are the tokens used in table column equations.

  • Equation — An optional equation built from performance data. When filled in, SportsPress calculates this result automatically from player performance stats instead of requiring manual entry. Built using the drag-and-drop equation builder accepting Performance items.

  • Decimal Places — The number of decimal places to display when rendering this result value. Defaults to 0.

  • Description — Internal notes displayed only in the admin dashboard.

How Results Differ from Outcomes

Results are numerical values entered (or calculated) per team per event. Outcomes are categorical labels assigned to teams based on those values. The relationship flows in one direction: result values inform outcome detection; outcomes do not affect result values.

A team might accumulate goalsfor = 3 and goalsagainst = 1 in a single event. The outcome engine then compares those values according to the configured conditions and assigns Win or Loss automatically.

The Primary Result

Only one result can be designated as primary. The primary result is the one the outcome conditions reference when comparing teams. In soccer, Goals is the primary result. In basketball, Points would be primary.

Changing the primary result changes what outcome conditions compare. If you change the primary result, verify that your outcome conditions still reflect the correct labels (they will update automatically in the UI).

The Equation Field

If a result has an equation, SportsPress calculates its value automatically from player performance data when the event is saved. For example, a Goals result could have an equation $goals that sums all player Goals Scored performance entries for that team. This means you do not need to enter the team's total goals manually — it is summed from individual player contributions.

If the equation field is empty, the result must be entered manually for each team on each event.

Adding a Result

  1. Go to SportsPress > Configure.

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

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

  4. In the Details meta box, set the Variable and Decimal Places.

  5. In the Equation meta box, optionally drag and drop performance items to define an auto-calculation.

  6. Optionally add a description in the Excerpt field.

  7. Set the display Order in the Attributes box.

  8. Click Publish.

After adding the result, return to the Configure screen and select its Primary radio button if it should be the primary result, then save the form.

Did this answer your question?