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

Birthdays Shortcode

Pro Feature

Birthdays Shortcode

Display upcoming and recent birthdays for players and staff. Shows birthdays within a customizable date range around today. Perfect for club news sections, sidebar widgets, or community engagement features.

Birthdays default layout showing age, player photo, name, birth date, club logo, and position

Premium Feature

This shortcode requires the Football Leagues Premium plugin.

Basic Usage

[anwpfl-birthdays club_id="8"]

This displays upcoming birthdays for players in club 8.

All Parameters

Parameter Default Description
club_id (empty) Club ID(s), comma-separated for multiple
type players Who to include: players, staff, all
days_before 5 Show birthdays this many days before today
days_after 3 Show birthdays this many days after today
group_by_date 0 Group by date. Use 1 to enable
layout (default) Layout style: empty for default, slim for compact

Examples

Example 1: Club Player Birthdays

When to use: Club homepage birthday widget.

[anwpfl-birthdays club_id="8" days_before="7" days_after="7"]

Result: Player birthdays within a 2-week window.

Birthdays default layout showing age, player photo, name, birth date, club logo, and position

Example 2: Players and Staff

When to use: Complete team birthday list.

[anwpfl-birthdays club_id="8" type="all" group_by_date="1"]

Result: All birthdays grouped by date.

Example 3: Multiple Clubs

When to use: League-wide birthday section.

[anwpfl-birthdays club_id="8,12,15,20" type="players"]

Result: Player birthdays across multiple clubs.

Example 4: Compact Sidebar Widget

When to use: Space-limited sidebar placement.

[anwpfl-birthdays club_id="8" layout="slim" days_before="3" days_after="3"]

Result: Compact display for smaller spaces.

Birthdays slim layout - compact list with age, name, birth date, club, and position (no photos)

Example 5: Slim Layout with Date Grouping

When to use: Organized compact display showing birthdays grouped by date.

[anwpfl-birthdays club_id="8" layout="slim" group_by_date="1"]

Result: Slim layout with date headers for easy scanning.

Birthdays slim layout grouped by date - shows date header (Jan 01) with players listed below

Tip

The date range is calculated from the current date. A player whose birthday is today will appear when both days_before and days_after include today.

Troubleshooting

No birthdays showing?

  • No birthdays may fall within the current date range
  • Verify birth dates are entered in player/staff profiles
  • Try expanding the date range with larger values

Related