Home › Forums › General Issues › Edit an existing post with acf_form › Reply To: Edit an existing post with acf_form
You can place the acf_form() code in the template that shows posts and it will automatically edit the post that’s displayed.
You can do a check to see if the user is allowed to edit the post in question do decide if the form should be included.
If you wan you could have this form hidden by default using CSS or some other method and then you could add a “edit post” link or button on the page as well that runs some JavaScript to show the form.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.