Teams


Teams are automatically created when games are imported. Each team stores its name, colors, logo, venue, and roster data from the API.

Admin Menu: Hub Data > Teams

Team Data

FieldDescription
Name / Short NameFull and abbreviated team name
Name Code3-letter abbreviation (e.g., LAL, BOS, NYY)
ColorsPrimary, secondary, and text colors from API
CountryTeam’s country with flag
VenueHome stadium or arena (linked entity)
ManagerHead coach (linked entity)
RosterCurrent player list with positions and jersey numbers

Team Colors

Team colors are imported from the API and used throughout the frontend — game headers show team-colored accent bars, badges use team colors, and statistics comparison bars are color-coded.

When two teams have similar colors in a game, the plugin automatically applies a diagonal stripe pattern to one team’s bars to maintain visual distinction.

🎨 Logos & Display Modes

Team logos are downloaded from the API and converted to optimized WebP format (50×50 and 150×150 sizes). Logo downloading is enabled in API & Import > API Config under Media & Images. When logos are not downloaded, the plugin shows team name badges as a fallback.

Media and Images settings with Team Logos toggle and badge fallback

The Team Display setting in Plugin Settings controls how teams appear in game cards and lists:

Team Display dropdown with five display mode options

Display Modes

Logo mode — shows the team logo. Best when logos are imported:

Game cards with team logos

Badge — outlined — team code in a bordered badge with team color:

Game cards with outlined team code badges

Badge — filled — team code on a solid team-colored background:

Standings table with filled team code badges

Auto modes show the logo when available and fall back to either outlined or filled badges when no logo exists.

Custom logos: You can override any API logo with your own upload. Custom logos are protected from being overwritten during future imports. See Custom Logos for details.

Roster

Team rosters list all players with their position, jersey number, photo, and key stats. Players are grouped by position:

  • Basketball: Guards, Forwards, Centers
  • Baseball: Pitchers, Infield, Outfield
  • Other sports: Grouped alphabetically by position

Players are sorted by jersey number within each group. Each player card links to the player’s page.

Team roster with Guards, Forwards, and Centers position groups

Season Record & Form

The plugin calculates each team’s W-L record from imported game data:

  • Overall: Total wins and losses
  • Home/Away splits: Separate records for home and away games
  • Recent form: Last 10 game results as W/L indicators with game peek on hover
  • Last Win / Last Loss: Date and “days ago” count in colored circles

Records update automatically as new games are imported.

Season record with Overall, Home, Away W-L, Win percentage, and conference rankings

The team header shows all key info at a glance — logo, league, venue, coach, last win/loss dates, recent form (last 10 W/L), and an interactive calendar with opponent logos:

Team header with logo, metadata, form dots, last win/loss, and calendar

📋 Admin List

The Teams admin list (Hub Data > Teams) shows logos, sport badges, country flags, and color swatches. You can filter by sport and country.

Teams admin list with sport badges, country flags, and color swatches

Clicking a team name opens the edit screen. Team posts are read-only — data comes from the API. You cannot create teams manually, but you can upload a custom logo via the featured image field.

Team edit screen with name, permalink, and featured image upload

📚 Related