Shortcode: [sl-game]
Display a complete game page or specific game sections with full control.
Overview
Embed a full game display or selected sections (scoreboard, stats, commentary, etc.) anywhere on your site. Choose which sections to show and customize the layout.
Use Cases
- Embed game on custom pages
- Show specific game sections only
- Display team’s last/next game
- Feature game of the week
- Create custom game layouts
Parameters
Game Selection
| Parameter | Type | Default | Description |
|---|---|---|---|
game_id | Integer | – | Specific game ID to display |
last_team_id | Integer | – | Show last game for this team ID |
next_team_id | Integer | – | Show next game for this team ID |
Note
Use only one selection method: game_id, last_team_id, or next_team_id
Display Options
| Parameter | Type | Default | Description |
|---|---|---|---|
sections | String | – | Comma-separated section IDs to show |
section_header | Integer | 1 | Show section headers: 1 or 0 |
Available Sections
| Section ID | Description |
|---|---|
header | Game header with basic info |
scoreboard | Game scoreboard with scores |
gallery | Game photo gallery |
latest | Latest games between teams |
missing | Missing players list |
player-stats | Player statistics table |
players | Players/lineup list |
staff | Staff list |
summary | Game summary/events |
team-stats | Team statistics comparison |
video | Game video embed |
commentary | Live commentary (Premium) |
formation | Team formations (Premium) |
h2h | Head to head history (Premium) |
Shortcode Builder
Use the visual Shortcode Builder to configure the Game shortcode without writing code.
Examples
Specific Game – All Sections
[sl-game game_id="1234"]
Team’s Last Game
[sl-game last_team_id="42"]
Team’s Next Game
[sl-game next_team_id="42"]
Selected Sections Only
[sl-game game_id="1234" sections="header,scoreboard,player-stats,formation"]
Minimal Game Display
[sl-game game_id="1234" sections="scoreboard,team-stats" section_header="0"]
Last Game with Commentary
[sl-game last_team_id="42" sections="scoreboard,commentary,h2h"]
Featured Match Widget
[sl-game next_team_id="42" sections="header,scoreboard" section_header="0"]
Full Match Report
[sl-game game_id="1234" sections="header,scoreboard,summary,player-stats,team-stats,commentary,h2h"]
Technical Reference
Shortcode Class: Sports_Leagues_Premium_Shortcode_Game
Template: shortcode-premium-game.php

