Hello all,
I have anacf_form
running with acf custom fields so that users can submit their own blogs.
I’ve got the form working and it publishes a new blog. However, when given the option to edit, the post is edited in the acf_form, and someone clicks “update,” it will not update.
Here’s my code on the single.php page, where the article is displayed.
<?php
acf_form(array(
'post_title' => true,
'post_content' => true,
'submit_value' => 'Update the post'
));
?>
And here’s the originating form on a separate “submit” page template:
<?php
acf_form(array(
'post_id' => 'new_post',
'post_title' => true,
'post_content' => true,
'post_category' => 'grantee-blog',
'uploader' => 'basic',
'return' => '%post_url%',
'submit_value' => __("Publish Blog", 'acf'),
'new_post' => array(
'post_status' => 'publish'
)
));
?>
Any help would be greatly appreciated. Want to be able to have them edit their own posts after submission to help with typos or any other issues they have.