Skip to content

WP Plugin that import data from RugbyExplorer to Sportspress Events

Notifications You must be signed in to change notification settings

jethrolanda/rugbyexplorer-api

Repository files navigation

Introduction

Import data from https://xplorer.rugby/ into SportsPress plugin via API. Creates: Events, Venue, Teams, Leagues, Seasons, Venues, Teams, Players, Staffs, Jobs, Officials, Duties

Sortcodes

[player_lineup]

  • Displays the team starting lineup, substitutes, coaches and referees for both teams.
  • The data is fetched from RugbyExplorer not from SportsPress.
  • Add this shortcode in the event page post content.
  • No attributes needed.
  • This shortcode is using rugbyexplorer event match id. The match id is added in the event post meta where the name is “fixture_id” after import.

[points_summary]

  • Displays the points summary data of the match.
  • The data is fetched from RugbyExplorer not from SportsPress.
  • Add this shortcode in the event page post content.
  • No attributes needed.
  • This shortcode is using rugbyexplorer event match id. The match id is added in the event post meta where the name is “fixture_id” after import.

[team_ladder competition_id="mLGoqgHnacX2AnmgD"]

[team_events entity_id="53371" competition_id="mLGoqgHnacX2AnmgD" season="2025" team_id="DZJhdynaY4wSDBQpQ"]

[top_scorer playerlist_id="57268" season="2024"]

  • I am copying the playerlist shortcode template (player-list.php) so that I can override the team id based on the current team page.
  • Requires playerlist_id to work properly.
  • Season attribute is optional. If no season then it will rely on the playerlist season setting.
  • Goto https://staging.focosme.com/wp-admin/edit.php?post_type=sp_list and create a top scorer for Try and Conversion. Just leave the team blank.
  • It will use the settings from the player list post id
  • If adde in the team template, this shortcode will just automatically detect the current team page id and autofilter the players based on the current team page.

Blocks

None

Zip File

To create a .zip file of this plugin. First clone this repository and create a zip using this code: git archive -o rugbyexplorer-api.zip HEAD

About

WP Plugin that import data from RugbyExplorer to Sportspress Events

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published