Hello Everyone! I have a post_type called ‘entity’, and it has multiples repeater fields with relationships, this is a real example: Business Connections in post ‘John Doe’, to add multiple job positions.
— Business Connections (Repeater Field / Name: entity_business_connections)
—— Is (Select Field / Name: entity_business_connections_is)
——— Owner
——— Shareholder
——— Member
—— In (Relationship Field / Name: entity_business_connections_in)
——— Adobe (post_id: 1234)
—— From (Date Picker Field / Name: entity_business_connections_datefrom)
——— 1989
—— To (Date Picker Field / Name: entity_business_connections_dateto)
——— 2005
And so on, there’s another 10 fields like Business Connections, and now I’m trying to make the reverse relation, just like ACF relationship tutorial show regarding Doctors. In this case, I want to show all ‘entity’ posts that has any relation to ‘Adobe’ in a organization-single.php, to show for example, Adobe Company:
‘John Doe’ was ‘Member’ (here, in Adobe) from ‘1989’ to ‘2005’.
I was unable to find the right way to do this. Any ideas about how it should be? I’ll really appreciate if you could give me some hint!
PD: I know this I’m trying its kind of dificult to do with ACF and you probably you will suggest me another way to do this, but in the meantime I need to try to solve this using ACF 🙁
Thank you in advance! 😉
Best,
Juan Pablo