Home › Forums › General Issues › Getting the field_key by name › Reply To: Getting the field_key by name
No worries!
What I mean is that whenever ACF saves a value for the first time on a post two fields is created in wp_postmeta. Both field_name and _field_name where field_name contains the actual value and _field_name contains the fields internal key created by ACF.
So if field_name exists in wp_postmeta then _field_name should also exist. The exemption from this is if you create the field_name key/value pair yourself using update_post_meta (for example). Then _field_name wont exist until the post has been “updated” from wp-admin.
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.