Home › Forums › General Issues › acf/fields/relationship/query › Reply To: acf/fields/relationship/query
Hi John
I think what I trying to do is something along the lines of a SQL innner join.
I have a custom field in the ‘listing’ post from which I can pull an array of event IDs (all of whom related to that listing.)
I’m trying to use that array to filter out unrelated events when the user fills out a booking form on the front end (where the user is choosing an event to book for.
The upshot is that user’s list of choices for selecting an event to book for, are limited to the events related to the listing the user is looking at.
One way of expressing it is that I’m trying to filter the child to choose a parent from multiple parents, all of whom have a single grandparent. So my filter has to omit all choices of parents who are not the children of a particular grandparent.
Doe that make sense?
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.