Home › Forums › General Issues › Database structure › Reply To: Database structure
ACF stores data for custom field related to posts in the post_meta table, just like standard wp custom fields. It stores custom fields for everything else in the options table.
Every field has two database rows associated with it. The first is your standard meta_key => meta_value. The other is a reference entry, the meta_key is your field name with an _ (underscore) at the beginning and the value is the ACF field key. this tells ACF how to handle your value. The same pattern is used for options but the field names have more things added to the field names.
Some fields are far more complicated, like repeaters and flexible content.
All of the data stored using ACF can be retrieved using the standard WP function like get_post_meta and get_option if you use the right meta_key or option_name.
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U
— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.