Home › Forums › Backend Issues (wp-admin) › Bidirectional term-to-term relationship › Reply To: Bidirectional term-to-term relationship
You would need to create an acf/update_value filter for the taxonomy fields. In this filter you would need to:
1) Get the current value of the field before it will be updated
2) Compare the old value with the new value to see what relationships are being added or removed and update the other end of the relationship accordingly.
3) When updating the other end you will need to get the value of the other end, add or remove the new relationship and then update the other end.
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.