Home › Forums › Front-end Issues › problems with post edit/add › Reply To: problems with post edit/add
Let’s start with a ref,I am trying to follow tutorial:http://www.advancedcustomfields.com/resources/tutorials/creating-a-front-end-form/
Clarifiaction when I say I am setting 'post_id' => $post->ID
to a specific number i mean changing this to 'post_id' => 464
found on permalink AND added $options variable to the same file of the themes’templates’ php code.
That works, however you normally need to set the post_id from a page that queries wp_query and comes up with $post=>ID
. You also normally need not to use the <?php the_post(); ?>
and instead add a textarea or WYSIWYG to actually change the content&title.( i guess with the html_after_fields property/attribute)
It is extraordinary and seems improbable that you took spended so much effort to render acf_form and not have included standardfields, so please check your referrences and documentation for any hints or refferences
I also needed to display a list of posts with an edit link to point to the page using the template that will ‘fetch’ the $post=>ID
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
👉 https://t.co/3UtvQbDwNmhttps://t.co/wfFEVcXVKc
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.