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