I try create post with values from form. My custom value is Post Object. In form in options i get some code

<option value="26">Двигатель</option>
<option value="32">Доп. Оборудование</option>

After sending values from form via ajax i create post
$my_post = array(some args)

$post_id = wp_insert_post()

then i try
and how i see in documentation from site Advanced Custom field :

update_field( "field_5039a99716d1d", "I am a value!", $post_id );

in result i see new post with value what i select in
but, if in admin panel im not push button Update Post. I didnt get value in my site page.

Read more here: Update field value after wp_insert_post


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, ,

Wordpress related questions and answers: