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.