Home › Forums › ACF PRO › True/False – Only allow one post to have true value › Reply To: True/False – Only allow one post to have true value
Sorry for not getting back here sooner.
I just noticed that you are calling
acf_update_field( $fieldId, false, get_the_ID() );
That function does not update the value of the field, it updates the acf field’s settings. You should be using update_field()
;
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.