Hi Guys,
I am looking for a way to separate ACF’s form display to ACF’s form edit. What I would like to obtain is to have an Edit Button on a page which will jump to the edit form page.
Please advise.
Hi @zander-mina
If you want to have a separate page for the edit form, you need to pass the post/page ID you want to update like this:
acf_form(array(
'post_id' => 99,
));
Where “99” is the post/page ID you want to update. That way you can place it in another page as long as you can get the post/page ID. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/acf_form/.
To pass the post/page ID, I recommend you use the $_GET variable. This page should give you more idea about it: http://php.net/manual/en/reserved.variables.get.php.
I hope this helps 🙂