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!