Home › Forums › Bug Reports › Programmatically inserting field with update_field() does not at _field_key meta › Reply To: Programmatically inserting field with update_field() does not at _field_key meta
update_post()
is not an ACF function. Are you sure that’s what you’re calling? This should be creating a fatal error, unless this function happens to be defined in some other plugin.
update_field('field_key','value', $post_id);
It also depends on what type of field you are updating and what you’re trying to set the value to.
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.