Support

Account

Home Forums Front-end Issues Repeater in acf_form wont update Reply To: Repeater in acf_form wont update

  • How could i get an indication whether my field is attached to the right post type?

    My acf_form looks like this:

    <?php
    add_filter('acf/update_value', 'wp_kses_post', 10, 1);
    acf_form_head();
    get_header(); ?>
    
    acf_form(array(
    	'post_id'	=> 'new_post',
    	'submit_value'  => __("Submit", 'acf'),
    	'post_title'    => true,
    	'field_groups'	=> array(74, 1019),
    	'new_post'	=> array(
    		'post_type'	=> 'events',
    		'post_status'	=> 'pending'
    	),
    	'tax_input'	=> array( 'photo_category' => array( date('Y') ) ),
    	'uploader' 	=> 'basic'
    ));

    Also im using this filter for a custom title label:

    
    add_filter( 'acf/get_valid_field', 'change_input_labels');
    function change_input_labels($field) {
    
    	if($field['name'] == '_post_title') {
    		$field['label'] = 'Name';
    	}
    
    	return $field;
    
    }