Home › Forums › Front-end Issues › problems with post edit/add › Reply To: problems with post edit/add
Your last comment has me very puzzled. What do you mean by:
put all the code in the template, nothing on the page.
get the post Id from the page not the template i guess and edit it appropriately…
I get blank in that case while putting the $options array in the template
I don’t understand these comments. Perhaps it is a language barrier?
Are you not adding this code to the page template? Where are you using the code? Are you placing the $options array and the acf_form function in 2 different files?
What is $options, your code shows $args.
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!
❓Ever wondered when and why ACF uses JSON instead of the database? Check out our summary of the most recent session of ACF Chat Friday for the answer, and make sure to register for the next session.— Advanced Custom Fields (@wp_acf) February 23, 2023
© 2023 Advanced Custom Fields.