I am not sure I understand what you are trying to accomplish.
So, you have a list of terms.
For each term you create a query in order to fetch a list of posts.
For each post you fetch multiple repeaters.
For each repeater… Well, what is the content of these repeaters, and where do the filters come in?
In any case, if you aim to filter posts after they have been fetched by the query, generally it is a good idea to iterate the query results with
$query->the_post() and store the posts in another array for further processing, instead of printing them as they come.
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 29, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.