Support

Account

Home Forums General Issues Reverse-engineer an 'post object' field

Helping

Reverse-engineer an 'post object' field

  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Reverse-engineer an 'post object' field’ is closed to new replies.