Hi,
I’ve got an ACF-group called ‘Employees’, which has an ‘Post Object’ field called ‘Projects’. Using this field my client is able to select which employees worked on which project.
Now comes the reverse-engineering. I wan to loop though all the employees that worked on a certain project in my post loop.
How would that be possible? Wrapped my head around it multiple times, but can’t seem to find a good or even working approach. Creating a
WP_Query
with only the current post’s related employees would be conceptual the best — I guess…
Anyone having any suggestions?
I think I’m not understanding what you’re trying to do. Where is the group with employees? I’m guessing from your descriptions it’s a repeater field, but I’m not sure.