Home › Forums › General Issues › Bidirectional Relationships not updating both sides › Reply To: Bidirectional Relationships not updating both sides
Take a look at the data in the database. Look at the value of a relationship saved by ACF and look at the value the relationship field saved by your code. Make sure they look the same. What you will see is a serialized array value. Make sure the value type for the post IDs is the same. “s” means the value is a string and the post IDs will have enclosed in “”, while “i” means the value is an integer and the post IDs will not be enclosed in “”.
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!
💻 The next ACF Chat Fridays features a live demo of one of our most highly-requested features: registering CPTs and custom taxonomies directly in ACF. Don’t miss it!— Advanced Custom Fields (@wp_acf) February 27, 2023
📆 Friday 3rd March 3pm UTC
👉 Register here - https://t.co/3UtvQbDwNm pic.twitter.com/j4r4ouQtz9
© 2023 Advanced Custom Fields.