Twitter Settings and Configuration
The Twitter extension exposes its options across two surfaces: a general settings tab in the SportsPress settings panel, and per-record meta boxes on team, player, and staff edit screens.
General settings
Go to SportsPress → Settings → General and scroll to the Twitter section to configure:
Setting | Default | Effect |
Theme | Light | Switches the embed colour scheme between light and dark to match your theme background |
Limit | 3 | Number of tweets to display in each embed |
The Limit value is passed to Twitter's embed widget; setting it to 0 lets Twitter choose its own height-based limit.
Per-record meta boxes
A Twitter meta box is added to each of:
sp_team— for club / team accountssp_player— for individual player accountssp_staff— for coach and manager accounts
The meta box contains a single text field. Enter the Twitter username without the @ symbol (e.g. clubname, not @clubname). The value is stored under the sp_twitter post meta key.
Template section
The plugin adds a Tweets section to the team, player, and staff template stacks via:
sportspress_team_show_tweets(option key)sportspress_player_show_tweets(option key)sportspress_staff_show_tweets(option key)
By default these are enabled. To hide the Tweets section across one of these post types:
Go to SportsPress → Settings → [Teams / Players / Staff].
Find Tweets in the template section list.
Untick it and save.
Customising the embed template
The Tweets section uses templates/tweets.php from the plugin folder. To customise it without losing changes on plugin updates, copy the file to your-theme/sportspress/tweets.php and edit your copy. SportsPress's template loader will use the theme override automatically.
