Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the spinupwp domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /sites/coreysalzano.com/files/wp-includes/functions.php on line 6121
ACF get_fields() not working but get_field() does – Corey Salzano

ACF get_fields() not working but get_field() does

This is confusing: calls to get_fields() find no Advanced Custom Fields values saved with a specific post, but calls to get_field() find values for the same post.

This happens when ACF did not insert the field values, and the secondary value with the meta_key beginning with an underscore does not exist.

The post has the values, but the Advanced Custom Fields plugin expects an additional value in a hidden field for each field.

ACF Creates a Second Key Value Pair

  1. my_custom_value
  2. _my_custom_value (this one is missing)