Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JMWebDevelopment/56f8e11f1413d4b009c8c98cf74cf45a to your computer and use it in GitHub Desktop.
Save JMWebDevelopment/56f8e11f1413d4b009c8c98cf74cf45a to your computer and use it in GitHub Desktop.
For more information, go to: https://sportsbenchwp.com
<div id="team-select" class="row">
<select name="player-page-select" id="player-page-select">
<option value=""><?php _e( '--- Select a Team ---', 'sports-bench' ); ?></option>
<option value="0"><?php _e( 'Free Agent', 'sports-bench' ); ?></option>
<?php
$teams = sports_bench_get_teams( true );
foreach ( $teams as $team_id => $team_name ) {
echo '<option value="' . $team_id . '">' . $team_name . '</option>';
}
?>
</select>
</div>
<div id="team-players" class="row"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment