Home › Forums › Front-end Issues › Access the acf “$_query” made, on a Relationship field › Reply To: Access the acf “$_query” made, on a Relationship field
And thanks for your answer. I just came back from my holidays.
If i understand you well, the query made by acf to get the posts that match the relationship field, uses the posts_per_page define in the wp admin panel ?
Anyway, my goal was to display a paginated list of posts.
List which users can filters with taxonomies.
And to achieve this, do not use another query. i.e. use only the query already made and modify this query with a pre_get_posts hook like.
I manage to do so, in my archive page with the main_query and the pre_get_posts hook.
But i don’t think it’s possible to achieve this, on my relationship based posts list, without made an additional custom query
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.