Home › Forums › ACF PRO › update field is updating value in database but on the frontend › Reply To: update field is updating value in database but on the frontend
The $test_code is the VALUE of the field I want to populate, not a post_id. Do I need to send an array as the $test_code which includes the value and a post_id?
I’m not sure what ‘post ID (Integer) that represents the post you want to set the field’ means – what post_id should be here? can you please clarify?
$post_id is the post_id of the post where I want to populate the value.
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.