I'm developing a wordpress plugin. I'm using two different custom post types, players and teams.
- Players has relevant meta fields: First name, last name, and team.
- Teams has relevant meta fields of team name.
While editing a specific team post, I'm trying to have an array of all the players that currently have that team's name posted to their meta field for team name. I'm not sure how to do this. Any help or articles would be really helpful. Thanks