I’m struggling a bit trying to figure out how to write a proper meta_query.
Here is the situation:
On my site I have a CPTs called “podcasts” and “Team”. When creating a podcast, the user can select multiple authors using a relationship field to select any of the existing team members. In addition, the podcasts have a date field (date picker).
Then on the team members single template, I want to show the member’s 3 most recent podcasts.
So I need to query 3 podcasts where the current team member was selected and are ordered by the date picker field in descending order (3 most recent by date field). I’m pretty familiar with using meta_query to query posts by fields.
If I was only querying by author, I would do something like: