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

Matchweeks Slides Shortcode

Pro Feature

Display matches organized by matchweek in a horizontal slider with navigation. Users can click through matchweeks to see all fixtures/results for each round. Ideal for competition pages where you want to show the full schedule by round.

Matchweeks slides shortcode - a matchweek picker above that round's games, each row showing the kick-off, both clubs with their badges, the expected-goals figures and the score

Premium Feature

This shortcode requires the Football Leagues Premium plugin.

Basic Usage

[anwpfl-matchweeks-slides competition_id="12"]

This displays all matchweeks from competition 12 in a navigable slider.

All Parameters

Query Parameters

Parameter Default Description
competition_id * (required) Competition ID to display matchweeks from
group_id (empty) Filter by group ID (for group stage competitions)
matchweek (empty) Which matchweek the slider opens on. A number opens that round; -1 opens the competition’s Current MatchWeek. Left empty, it opens the first matchweek

Display Parameters

Parameter Default Description
show_club_logos 1 Show club logos. Use 0 to hide
show_match_datetime 1 Show match date/time. Use 0 to hide
match_card slim Card style: slim, simple or modern. Any other value, including empty, renders slim

Slider Options

Parameter Default Description
slides_to_show 4 Number of matchweek tabs visible in navigation

* Required parameter

Examples

Example 1: Competition Schedule Browser

When to use: Main competition page showing all rounds.

[anwpfl-matchweeks-slides competition_id="12"]

Result: Slider opens on the first matchweek, with navigation to all rounds. Add matchweek="-1" to open on the competition’s Current MatchWeek instead.

Example 2: Start at Specific Matchweek

When to use: Force display of a particular round.

[anwpfl-matchweeks-slides competition_id="12" matchweek="15"]

Result: Opens directly to matchweek 15.

Example 3: Group Stage Display

When to use: Show specific group in Champions League style competition.

[anwpfl-matchweeks-slides competition_id="25" group_id="2"]

Result: Only matchweeks/matchdays for Group B.

Example 4: Compact Display

When to use: Smaller sidebar widget.

[anwpfl-matchweeks-slides competition_id="12" slides_to_show="3" show_club_logos="0"]

Result: Narrow navigation with text-only match cards.

Example 5: Wide Navigation

When to use: Full-width competition page.

[anwpfl-matchweeks-slides competition_id="12" slides_to_show="6" match_card="simple"]

Result: Shows 6 matchweek tabs with the compact simple card, which renders roughly a third less markup than slim.

Opening on the current round

Pass matchweek="-1" and the slider opens on the competition’s Current MatchWeek – a number you set on the round-robin stage, which the API Import keeps up to date for you. Without it the slider opens on matchweek 1, which on a season-long page is rarely the round anyone wants.

How It Works

  1. Navigation bar: Shows matchweek numbers/names as clickable tabs
  2. Content area: Displays all matches for the selected matchweek
  3. Opening slide: Matchweek 1 by default; the round you name in matchweek; or the Current MatchWeek with matchweek="-1"
  4. Responsive: Navigation adjusts based on screen size

Troubleshooting

No matchweeks appearing?

  • Verify matches have matchweek numbers assigned
  • Check that competition_id is correct
  • Ensure matches are published

Wrong starting matchweek?

  • Use matchweek parameter to force specific round
  • With matchweek="-1", check the stage’s Current MatchWeek value – if it is empty the slider quietly falls back to matchweek 1

Related