🎯 Need Help?

Get Premium Support

Priority assistance from the developer

⬆️ Upgrade

Unlock all features

More from ANWP

Sports Leagues Premium

Multi-sport league management with advanced statistics

Learn more →

AnWP SL Theme Kit

Starter themes & block patterns for Sports Leagues

Learn more →

Competition Header Shortcode


Display a competition banner/header with logo, title, and optional season selector. Use at the top of competition pages for visual branding and navigation.

Basic Usage

[anwpfl-competition-header id="12"]

This displays the competition header for competition ID 12 with logo and title.

All Parameters

Parameter Default Description
id * (required) Competition ID to display
title (auto) Custom title text (overrides auto-generated)
title_field (league) Which name to show: empty for League name, competition for Competition title
title_as_link 0 Make title clickable. Use 1 to enable
season_selector 0 Show season dropdown. Use 1 to enable
transparent_bg 0 Use transparent background. Use 1 to enable

* Required parameter

Examples

Example 1: Basic Competition Header

When to use: Top of competition page.

[anwpfl-competition-header id="12"]

Result: Competition logo and league name displayed.

Example 2: With Season Selector

When to use: Allow users to switch between seasons.

[anwpfl-competition-header id="12" season_selector="1"]

Result: Header with dropdown to select different seasons.

Example 3: Clickable Title

When to use: When header is on a page other than the main competition page.

[anwpfl-competition-header id="12" title_as_link="1"]

Result: Title links to the competition’s main page.

Example 4: Show Competition Title

When to use: When competition title differs from league name.

[anwpfl-competition-header id="12" title_field="competition"]

Result: Shows “Premier League 2024/25” instead of just “Premier League”.

Example 5: Custom Title

When to use: Override the automatic title completely.

[anwpfl-competition-header id="12" title="English Premier League"]

Result: Displays “English Premier League” as the title.

Example 6: Full Competition Page Setup

When to use: Complete competition page layout.

[anwpfl-competition-header id="12" season_selector="1" title_as_link="1"]

[anwpfl-standing competition_id="12"]

[anwpfl-matches competition_id="12" type="fixture" limit="10"]

Result: Complete competition page with header, standings, and upcoming matches.

Tip

The season selector automatically shows all seasons where this league has competitions. Users can switch seasons to view historical data.

Troubleshooting

No logo showing?

  • Verify the competition has a logo (featured image) set
  • Check the League also has a logo if using league name display

Season selector empty?

  • The league must have competitions in multiple seasons
  • Verify competitions are published and assigned to seasons

Related