Home › Forums › Front-end Issues › Front form doesn't save my fields › Reply To: Front form doesn't save my fields
This part:
<?php
acf_register_form(array(
'id' => 'mytest',
'post_id' => $id,
'form' => false,
'post_title' => false,
'post_content' => false,
'uploader' => 'basic',
'field_groups' => array(2135),
));
acf_form('mytest');
?>
is called inside this part
<form method="POST" action="" enctype="multipart/form-data" id="stm_sell_a_car_form">
<?php if ($car_edit){ ?>
<input type="hidden" value="<?php echo intval($vars['id']); ?>" name="stm_current_car_id"/>
<input type="hidden" value="update" name="stm_edit"/>
<?php } else { ?>
<input type="hidden" value="adding" name="stm_edit"/>
<?php } ?>
<?php do_action('stm_vin_auto_complete_require_template'); ?>
<?php stm_listings_load_template('add_car/title', $vars); ?>
<?php stm_listings_load_template('add_car/step_1', $vars); ?>
<?php stm_listings_load_template('add_car/step_2', $vars); ?>
<?php stm_listings_load_template('add_car/step_3', $vars); ?>
<?php stm_listings_load_template('add_car/step_4', $vars); ?>
<?php stm_listings_load_template('add_car/step_5', $vars); ?>
<?php stm_listings_load_template('add_car/step_6', $vars); ?>
</form>
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.