Support

Account

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?

  • Just add:
    'post_title' => $_POST['fields']['field_yourfieldnumber']
    to your array.

    For example:

    $post = array(
        'post_status'  => 'publish' ,
        'post_title'  =>  $_POST['fields']['field_1'],
        'post_type'  => 'example' ,
    );

    I think everyone is just missing [‘fields’] before the field name.

    Compliments to Aaron Ranger for his tutorial:
    http://www.telegraphicsinc.com/2013/07/how-to-add-new-post-title-using-aacf_form/