Staff Gallery
The [staff_gallery] shortcode displays staff members from a Staff Directory as a photo gallery — a grid of staff photos with names as captions.
Requires SportsPress Pro with a Club, League, or Agency license. The Staff Directories module must be enabled.
What It Displays
A responsive grid of staff thumbnail photos with staff member names below each image. Clicking a photo links to the staff member's profile page when link_posts is enabled.
When to Use It
Use on any page. Supply id pointing to a SportsPress Staff Directory post. Inside the Loop on a Staff Directory post page, id can be omitted.
Parameters
Parameter | Type | Default | Description |
| integer |
| Post ID of the Staff Directory. Required outside the Loop. |
| string/boolean |
| Override the displayed heading. |
| integer |
| Maximum number of staff to display. |
| integer |
| Number of columns in the photo grid. |
| string |
| WordPress image size for thumbnails. |
| string |
| HTML tag wrapping each gallery item. |
| string |
| HTML tag wrapping the image within each item. |
| string |
| HTML tag wrapping the caption within each item. |
| string |
| HTML heading tag for group headings (if grouping is used). |
| boolean |
|
|
| boolean | From settings |
|
Usage Examples
Minimal — photo gallery for a staff directory:
[staff_gallery id="60"]
4-column gallery with staff profile links:
[staff_gallery id="60" columns="4" link_posts="1"]
Gallery with a "View all staff" link:
[staff_gallery id="60" show_all_staff_link="1"]
