Home › Forums › Front-end Issues › wp_query filtering is not applying to repeater › Reply To: wp_query filtering is not applying to repeater
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!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.