Using the Shortcodes
Level: Beginner
But your shortcode options aren’t just limited to standings, you can also use shortcodes to show playoff brackets, game information, players and teams.
- To begin using a shortcodes, first start a new page or post. Then click the “SB” logo near the top of the visual editor. This will open up a modal where you can select a number of different shortcodes.
- If you want to add a game shortcode, select “Game” and then select a season. From there, select a game from that season. The shortcode will then show the teams competing in the game as well as the time, date and location of the game. If the game is finished and has a recap, a link to the recap will show as well.
- If you want to add a player shortcode, select “Player” and then select a player from the list that appears. The shortcode will display the player’s photo and information and their recent stats.
- If you want to add a team shortcode, select “Team” and then select a team from the list that appears. The shortcode will display the team’s logo and information and their recent games and upcoming schedule.
- If you want to add a playoff shortcode, select “Playoff Brackets” and then select a playoff bracket from the list that appears. This will display the bracket in table form on the front end.
- If you want to add a rivalry shortcode, select “Rivalry” and then select the two teams that you want to display stats for. This will display the series records between the two teams and their recent results against each other.
- If you want to add a team page shortcode, select “Team Page”. Next, please find the “Creating a Team Page” section of the guide and follow those instructions.
- If you want to add a player page shortcode, select “Player Page”. Next, please find the “Creating a Player Page” section of the guide and follow those instructions.
- If you want to add a game recap shortcode, select “Game Recap” and then select the game you want to show a recap for.
- That’s it. You can now display a lot of cool information in your posts and pages without writing a single line of code!
Continue Learning
Getting Started with the Sports Bench Plugin
- Setting Up the Player Page
- Setting Up Game Previews and Recaps
- Using the Shortcodes
- Using the Widgets
- Setting Up the Player Stat Search Page
- Setting Up the Stats Leaderboard Page
- Setting Up the Standings Page
- Setting Up the Scoreboard Page
- Setting Up the Box Score Page
- Installing and Activating Sports Bench
- Setting Up the Team Page
- Creating a New Playoff Bracket
- Adding Divisions/Conferences
- Creating a New Game
- Creating a New Player
- Creating a New Team
- Setting Up the Sports Bench Settings