Support

Account

Home Forums ACF PRO Create new user with acf_form Reply To: Create new user with acf_form

  • Hey James!

    Thanks for your help, i tried to figure out how this works but im no step further. To add a new post i add the following code to my index.php. I dont know how this should look when i try to add a new user?

    Sorry and thanks for your help!

    <?php
    	
    	acf_form(array(
    		'post_id'		=> 'new_post',
    		'post_title'	=> true,
    		'post_content'	=> true,
    		'new_post'		=> array(
    			'post_type'		=> 'contact_form',
    			'post_status'	=> 'publish'
    		),
    		'return'		=> home_url('contact-form-thank-you'),
    		'submit_value'	=> 'Send'
    	));
    	
    	?>