Home › Forums › ACF PRO › Querying relationship fields › Reply To: Querying relationship fields
James, thanks for your reply.
I’ve managed to get it working but i will definetly give your solution a try (and see which one runs better).
What i did was: i created a new loop with all listings that are in the category “restaurant”. Based on the results i created an array of ID’s.
In the main loop for the archive page i used the array i just created in the ‘post__in’ query variable and voila.
Would you say this consumes a lot of resources?
I’m trying to go about this as simple and smooth as possible so i’m definetly want to go with the best-practice.
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.