🎯 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 →

Live Matches Shortcode

Pro Feature

Display matches that are currently in progress with live score updates. Shows real-time match information with auto-refresh functionality. Perfect for homepage widgets, live score tickers, or dedicated match day pages.

Premium Feature

This shortcode requires the Football Leagues Premium plugin.

Basic Usage

[anwpfl-live]

This displays all currently live matches across all competitions.

All Parameters

Query Parameters

Parameter Default Description
competition_id (all) Filter to specific competition
filter_by_clubs (all) Club IDs to filter (comma-separated)

Display Parameters

Parameter Default Description
group_by (none) Group matches: competition or empty for none
group_by_header_style (default) Header style: empty for default, secondary for alternate
show_club_logos 1 Show team logos. Use 0 to hide
competition_logo 1 Show competition logo. Use 0 to hide
layout slim Layout: slim, modern, simple
no_data_text (empty) Text to show when no live matches

Examples

Example 1: Homepage Live Widget

When to use: Main site live scores section.

[anwpfl-live group_by="competition" no_data_text="No live matches at the moment"]

Result: Live matches grouped by competition with fallback message.

Example 2: Competition-Specific Live Scores

When to use: Competition page live section.

[anwpfl-live competition_id="12" layout="modern"]

Result: Live matches from Premier League only.

Example 3: Club Live Matches

When to use: Club page showing their live game.

[anwpfl-live filter_by_clubs="8" show_club_logos="1"]

Result: Live match involving the specified club.

Example 4: Minimal Ticker

When to use: Compact sidebar or header placement.

[anwpfl-live layout="simple" show_club_logos="0" competition_logo="0"]

Result: Text-only live scores list.

Important

This shortcode only displays matches with a “live” status. Make sure to update match statuses when games start for them to appear in live widgets.

Layout Comparison

Layout Description
slim Compact single-line display
modern Enhanced visual design with more details
simple Basic text-focused layout

Troubleshooting

No matches showing?

  • Verify matches have “live” status set
  • Check competition_id or filter_by_clubs if used
  • Ensure there are actually live matches at the current time

Related