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
Hi John,
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.