Home › Forums › Backend Issues (wp-admin) › Updating ACF Data in DB › Reply To: Updating ACF Data in DB
When ACF saves values it creates 2 entries in the DB, one of these is the meta_key and the value of the field. The second is a field key reference. This is saved under the meta_key of “_{$field_name}”. Without this field key reference existing the field will exhibit the behavior you are describing.
If the plugin you are using offers an add on for ACF then you will need to use that.
If a plugin does not offer an add on that will work with ACF then you will need to do this work yourself. In these cases it is better to not have the form attempt to save the values direction to ACF fields. You should instead use a different field name for the other form and then create an action/filter on whatever hook the other plugin provides when a form is submitted and then use update_field() (see the note about using field keys) so that the field data is inserted correctly.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 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.