Plugin Contributor
Roch
(@rochesterj)
Hi there!
Thanks for reaching out.
I’m not sure if I get what you mean. What are you trying to do there? Where do you want to select the teams?
Thanks!
Good night
I need to obtain, through a select tag like the one in the image, the list of players that are within a team, the list of teams that are in a league, the list of leagues that are in a team season.
What I need to do with this data is to print a form that would be delivered to each referee of each game with the list of players of each team and with their respective sanctions, the form would be signed by each player to know that he played that game and at the end of the match the referee would complete the incidents of each player (goals, cards, etc.)
Thank you very much for the help
Good afternoon
I wanted to know if you have access to tell me at least the commands in PHP, for tournaments, leagues, teams and players, so I can get that information I need
Thank you very much
Goodnight
Plugin Contributor
Savvas
(@savvasha)
Hi @javiersinisgalli ,
Seasons (sp_season) and Leagues (sp_league) are custom taxonomies created by SportsPress.
Teams (sp_team), Players (sp_player), Events (sp_event) are custom post types created by SportsPress.
For Taxonomies/Terms look here:
https://developer.wordpress.org/reference/functions/get_terms/
https://codex.wordpress.org/Function_Reference/get_taxonomies
and generally search about custom taxonomy queries.
For Custom Post Type look here:
https://developer.wordpress.org/reference/classes/wp_query/
and generally search about custom post types queries.
You can always hire a developer to help you out if you are not familiar with PHP coding 🙂
Thanks,
Savvas
Thank you very much for the information, I will sit for a week and I will succeed