Writing ACF fields when creating post
-
I have no problem retrieving field values with a get request, but I can’t write the fields when creating a post.
An example array of post data sent:
$post = array(
“title” => “post title”,
“type” => “my-cpt”,
“status” => “publish”,
“excerpt” => “post excerpt”,
‘acf’ => array(
“my_field” => “my value”
)
);The post and all fields are created except for the ACF fields. What am I doing incorrectly?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Writing ACF fields when creating post’ is closed to new replies.