Support

Account

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>