Skip to main content

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.

Updated today

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

id

integer

get_the_ID()

Post ID of the Tournament. Required outside the Loop.

link_teams

boolean

From settings

1 to wrap the team logo/name in a link to the team page. Default from the global Link teams setting.

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"]

Did this answer your question?