Home › Forums › ACF PRO › bi directional relationship update via code › Reply To: bi directional relationship update via code
I got it working by looping through them all, getting the relationship field info and then just saving it right back via update_field…
But there must be a way to easily get the hook update_value to run manually.
I seem to only get it working when i press update post, but not when I use wp_update_post.
I also tried wp_insert_post. Nope.
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.