Home › Forums › Add-ons › Repeater Field › Repeater field with IF/ELSE based on sub_field value › Reply To: Repeater field with IF/ELSE based on sub_field value
There isn’t any way to do that with WP_Query directly. This would take a more complex query then WP_Query is capable of.
To be honest, I’m not even sure I help with the query you’d need because wp_posts is contected to wp_terms thought both wp_term_relationships and wp_term_taxonomy.
A very simplified form or the WHERE would be
WHERE (post_type = 'post' AND term_id = 304) // this is completely wrong OR (post_type IN(your other post types))
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.