Home › Forums › Front-end Issues › problems with post edit/add › Reply To: problems with post edit/add
OK I DID THAT, NOW MY CODE LOOKS LIKE
<phpcode><?php $options = array( 'post_id' => 377, // post id to get field groups from and save data to 'field_groups' => array(109,108 ), // this will find the field groups for this post (post ID's of the acf post objects) 'form' => true, // set this to false to prevent the <form> tag from being created 'form_attributes' => array( // attributes will be added to the form element 'id' => 'post', 'class' => '', 'action' => '', 'method' => 'post', ), 'return' => add_query_arg( 'updated', 'true', get_permalink() ), // return url 'html_before_fields' => '', // html inside form before fields 'html_after_fields' => '', // html inside form after fields 'submit_value' => 'Update', // value for submit field 'updated_message' => 'Post updated.', // default updated message. Can be false to show no message ); acf_form( $options ); ?></phpcode>
THE RESULT IS BLANK…MAYBE MY PHPCODE PLUGIN ISN’T COMBATIBLE,SUGGESTIONS?
PLEASE ANSWER ALSO IF ACFFORM HANDLES STANDARD FIELDS
(I HAVE ALTERED POST,NOT CREATED NEW POSTTYPE)
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.