Display a club’s most recent finished match as a compact card widget. This shortcode automatically updates after each match is completed.
Basic Usage
[anwpfl-match-last club_id="5"]
This displays the most recent finished match for club ID 5, showing both teams, the final score, and a link to match details.
All Parameters
Query Parameters
| Parameter | Default | Description |
|---|---|---|
club_id * |
(required) | Club ID to show last match for |
competition_id |
(empty) | Filter to specific competition(s). Comma-separated for multiple |
season_id |
(empty) | Filter to specific season |
exclude_ids |
(empty) | Match IDs to exclude (comma-separated) |
include_ids |
(empty) | Match IDs to include only (comma-separated) |
offset |
(empty) | Skip recent matches. Use 1 to show 2nd last match, 2 for 3rd last, etc. |
Display Parameters
| Parameter | Default | Description |
|---|---|---|
show_club_name |
1 | Show club names below logos. Use 0 to hide |
match_link_text |
“- match preview -“ | Custom text for the link to full match details |
transparent_bg |
(empty) | Use transparent background. Set to 1 for transparent |
* Required parameter
Examples
Example 1: Basic Last Result Widget
When to use: Sidebar or homepage showing your club’s latest result.
[anwpfl-match-last club_id="5"]
Result: Card showing latest result with team logos, score, and match report link.
Example 2: Last League Match Only
When to use: Show only league results, ignoring cup matches.
[anwpfl-match-last club_id="5" competition_id="12"]
Result: Most recent finished match in competition 12 only.
Example 3: Previous Result (Not Most Recent)
When to use: Show a previous match while the most recent is displayed elsewhere.
[anwpfl-match-last club_id="5" offset="1"]
Result: Shows the second-to-last finished match.
Example 4: Custom Link Text
When to use: When you want different call-to-action text.
[anwpfl-match-last club_id="5" match_link_text="Full Match Report"]
Result: Link displays “Full Match Report” instead of default text.
Example 5: Combined Next & Last Display
When to use: Club page showing both recent result and upcoming fixture.
<h3>Latest Result</h3>
[anwpfl-match-last club_id="5"]
<h3>Next Match</h3>
[anwpfl-match-next club_id="5"]
Result: Side-by-side or stacked display of recent and upcoming matches.
Tip
This shortcode automatically updates when you mark a match as “Finished”. No manual updating needed!
Troubleshooting
Nothing displays?
- Verify the club has finished matches (marked as “Finished”)
- Check that the club ID exists
- If using
competition_id, ensure the club has finished matches in that competition
Wrong match showing?
- Clear the plugin cache: FL Settings & Tools > Toolbox > Clear Cache
- Verify the most recent match is marked as “Finished”
- Check if
offsetparameter is set
Related
[anwpfl-match-next]– Show next upcoming match[anwpfl-match]– Full match details with sections[anwpfl-matches]– List multiple matches- Widget: FL Last Match widget for sidebar