I have a scheduling page with a nested query loop.
The first query loop gets the teams from a Teams CPT. This works fine. The Teams CPT also has a scheduled_games_relationship field.
The query loop inside the next block is supposed to get a list of games from the game CPT. The game cpt has a managed_team_relationship which is basically the main team for which the game is scheduled.
The meta query doesn’t work correctly as it still returns all games, not just ones for the team from the first query loop.
You can see in the page output that I display the post ID from the first query (Team ID/Post ID) but the Managed Team ID is from the managed_team_relationship field in the Game CPT and even through the second query loop is filtered, the games really aren’t filtered and it is showing all of them.
I highly doubt this is a bug. It’s likely my error, but I don’t know what’s causing it. Can anyone give me any pointers on what I am doing wrong? Thanks!