Home › Forums › General Issues › Bidirectional Relationships not updating both sides › Reply To: Bidirectional Relationships not updating both sides
I’d have to see all the code of your filter.
But, if you have two different fields with 2 different field keys then this is the issue. The code example you’re following is designed to work with fields that have the same field key. In other words, the same field/field_group assigned to both post types.
Sorry if I missed anything where you said it was two different fields.
I have a different example that does this for two different fields with different keys here https://github.com/Hube2/acf-filters-and-functions/blob/master/acf-reciprocal-relationship.php
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.