I’m using an acf_form to have a user create a post, which works no problem. But when the user needs to edit the post info, it shows the acf_form but all the fields are empty, causing the user to have to reinput everything all over again. Is there a way to have the fields populated with the previously inputted info when they edit?
Once the post has been created, to allow the user to edit the data instead of passing “new_post” as the value for post_id you need to pass the id of the post. When the post id is passed, the form will load the existing data for editing.
Hope this is helpful!
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users