Support

Account

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);