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 🙂
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.