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.
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 |
(auto) | Starting matchweek number (auto-detects current) |
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 |
club_links |
1 | Make club names clickable. Use 0 to disable |
match_card |
slim | Card style: slim or empty for default |
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 starts at current matchweek with navigation to all rounds.
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=""]
Result: Shows 6 matchweek tabs with default card style.
Tip
The slider automatically detects and focuses on the “current” matchweek based on match dates. This makes it perfect for season-long competition pages that always show the most relevant round.
How It Works
- Navigation bar: Shows matchweek numbers/names as clickable tabs
- Content area: Displays all matches for the selected matchweek
- Auto-detection: Starts at current matchweek if not specified
- 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
matchweekparameter to force specific round - Auto-detection uses match dates – check match scheduling
Related
[anwpfl-matches]– Vertical match list with matchweek filter (Core)[anwpfl-calendar-slider]– Date-based match slider[anwpfl-matches-scoreboard]– Horizontal match ticker
