Home › Forums › Backend Issues (wp-admin) › Calculated ACF fields conflict with acf/format_value › Reply To: Calculated ACF fields conflict with acf/format_value
The issue is that the function to format the value is being used when you use get_field in your save post action. This means that the calculation is attempting to do the the calculation with formatted value.
To overcome this you need to tell ACF not to format the values. This is done by adding the 3rd argument to get_field(), example:
$dogs = get_field('my_dogs', 'options', false);
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.