Support

Account

Home Forums General Issues get_fields returns empty Reply To: get_fields returns empty

  • Hi @sigma

    Please keep in mind that ACF saves two entries in the wp_postmeta table, which are the value and the reference.

    The value looks like this:

    custom_field_name : the value

    While the reference looks like this:

    _custom_field_name : field_12345657890abc

    Where “field_12345657890abc” is the field key.

    Reading your explanation, I believe the issue was because you haven’t added the reference key to the database. Could you please add the reference too and see how it goes 🙂