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

Staff Shortcode


Display a staff member card with photo, name, club, job title, and optional custom information. Perfect for featuring coaches, managers, and other club personnel.

Basic Usage

[anwpfl-staff staff_id="23"]

This displays a card for staff member ID 23 with their photo, name, and a profile link.

All Parameters

Parameter Default Description
staff_id * (required) Staff member ID to display
show_club 0 Show club name. Use 1 to display
show_job 0 Show job title. Use 1 to display
profile_link 1 Show link to full profile. Use 0 to hide
profile_link_text “profile” Custom text for the profile link
options_text (empty) Custom stats/info to display (see format below)

* Required parameter

Custom Info Format

The options_text parameter lets you display custom information:

  • Separate each item with a pipe |
  • Use colon : between label and value
  • Example: Trophies: 3 | Years at Club: 5

Examples

Example 1: Basic Staff Card

When to use: Simple staff feature in an article.

[anwpfl-staff staff_id="23"]

Result: Staff photo, name, and profile link.

Example 2: With Club and Job Title

When to use: Full context about the staff member.

[anwpfl-staff staff_id="23" show_club="1" show_job="1"]

Result: Card shows name, job title (e.g., “Head Coach”), and club.

Example 3: Manager Profile with Stats

When to use: Highlight a manager’s achievements.

[anwpfl-staff staff_id="23" show_job="1" options_text="Win Rate: 67% | Trophies: 4"]

Result: Card displays custom statistics below the info.

Example 4: Without Profile Link

When to use: Self-contained card without navigation.

[anwpfl-staff staff_id="23" show_club="1" show_job="1" profile_link="0"]

Result: Complete info without the profile link.

Tip

Staff members must be created in Football Leagues > Staff before they can be displayed with this shortcode.

Troubleshooting

Nothing displays?

  • Verify the staff_id exists and is published
  • Check that the staff member has a featured image for the photo

Club not showing?

  • Ensure show_club="1" is set
  • Verify the staff member is assigned to a club

Related