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'
));
?>
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.