- This topic has 4 replies, 2 voices, and was last updated 1 month ago by .
I'm working on an events website. I have custom post types for venues and dates. The relationship is from the dates to the venues. I'm working on a query to show all dates from a venue single view. This one is working:
$connected = new WP_Query( [ 'relationship' => [ 'id' => 'fromdatestovenues', 'to' => get_the_ID(), ], 'nopaging' => true, ] );
How can I get only dates from the relationship where a custom select field ('wochentag_select') is set to a specific value?
- You must be logged in to reply to this topic.