Skip to main content

Using BuddyPress with SportsPress

Day-to-day, the BuddyPress integration runs in the background. The two activities you'll repeat as your community grows are linking new members to player or staff records, and confirming that profile activity is rendering correctly on the frontend.

Updated today

Using BuddyPress with SportsPress

Day-to-day, the BuddyPress integration runs in the background. The two activities you'll repeat as your community grows are linking new members to player or staff records, and confirming that profile activity is rendering correctly on the frontend.

Linking a member to a player

When a new club member registers on your BuddyPress site:

  1. Create or edit their player record at SportsPress → Players.

  2. In the SportsPress player meta box, set the User field to the new member's account.

  3. Save the player. The next time the member visits their own BuddyPress profile, the SportsPress tab will show their events.

Linking a member to a staff role

The same workflow applies to coaches, managers, and other staff:

  1. Edit the staff record at SportsPress → Staff.

  2. Assign the WordPress user account in the User field.

  3. Save.

Avatar synchronisation

When a member updates their BuddyPress avatar, the change propagates to the linked SportsPress player or staff post via xprofile save hooks. The reverse is also true — uploading a player photo on the SportsPress edit screen updates the BuddyPress profile avatar.

If the avatars get out of sync, edit and re-save either the BuddyPress profile or the SportsPress player record to retrigger the sync.

Activity in the BuddyPress stream

Once linked, SportsPress events tied to the member's player record can appear in the BuddyPress activity stream. The plugin uses standard BuddyPress activity API calls, so the activity follows the same privacy and visibility rules as other BuddyPress activity types.

Troubleshooting

Symptom

Likely cause

SportsPress tab missing on a profile

Plugin is inactive, or the user is not logged in and the tab is configured for members-only views

Tab present but empty

User is not linked to a player or staff record (check the User field in the SportsPress meta box)

Avatar mismatch

Re-save the linked player or staff post to retrigger the sync

Activity not appearing

Confirm the BuddyPress activity component is enabled at Settings → BuddyPress → Components

Did this answer your question?