Home › Forums › Front-end Issues › How do you create post_title from another field(s) in ACF Pro? › Reply To: How do you create post_title from another field(s) in ACF Pro?
@Lagom-Jim does it work like this:
acf_form( array('post_id' => 'new_post',
'new_post' => array(
'post_title' => $_POST['acf']['field_2'],
'post_content' => 'Temp Contents',
'post_type' => 'members',
'post_status' => 'publish' ),
'submit_value' => 'Submit',
'field_groups' => array( 17 ),
'return' => get_the_permalink() ) );
All on the form page, with no pre_save_post
function?
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.