Hey there. Maybe you can help me break out of my loo- aaah my circle if mistaken thinking
I have CPT Events
Events reference another CPT: Venue
In Events, there is a meta key that contains the Post ID of the Venue, {{dc:post:meta key="_EventVenueID"}}
There is not a meta item in Venue that references the Events it is used in.
I tried to set up my loops as follows:
A Section contains the looper provider - Query Builder, Events, specific event selected to narrow it for testing.
This Section is also set as the consumer.
A Div inside this Section contains the looper provider - Query Builder, Venue, no other restrictions. The div is also set up as the consumer. This returns 3 results. (All three Venues currently created.) I am looking for 1 result, the Venue related to the Event specified by the parent Looper.
A text element in the nested Div shows that I am getting Venue meta data in the nested looper. Now the goal is to restrict it by the event it is being shown with.
I have tried to create a way to say “If Venue Post ID matches Event Meta _EventVenueID, return the Venue” through the meta function in the query builder and through Conditionals. I’ve combed through the documentation (which is missing some of the very nice new features of loopers) and the videos, but the nesting/referencing in examples is mostly parent/child, directly nested data, that kind of thing.
I’m just not thinking about this right and I’ve gone around and around with it. How can I better structure this?