Tournament Winner
The [tournament_winner] shortcode displays the winner of a tournament — the team's featured image (logo) if available, otherwise the team name in bold text.
Requires SportsPress Pro. The Tournaments module must be enabled.
What It Displays
A small panel with a "Winner" heading, the winning team's logo or name, and an optional link to the team page. The shortcode outputs nothing if no winner has been set on the Tournament post, or if the setting Tournaments > Show winner is disabled.
When to Use It
Use on a Tournament post page inside the Loop, or embed on any page with id. The Tournament post must have a winner saved in the sp_winner post meta field.
Parameters
Parameter | Type | Default | Description |
| integer |
| Post ID of the Tournament. Required outside the Loop. |
| boolean | From settings |
|
Usage Examples
Inside the Loop on a single tournament page:
[tournament_winner]
Winner badge embedded on any page, with the team linked:
[tournament_winner id="75" link_teams="1"]
Winner badge without a team link:
[tournament_winner id="75" link_teams="0"]
