• Resolved Matteo Legittimo

    (@mattleg)


    Hi,
    im using acf_form to create a new post.
    It works well and create my post with the ACF value correctly.

    But i need post_title and post_content, to fill with my custom field form. How can i get my custom field value in “my_pre_save_post” function filter ‘acf/pre_save_post’.

    Thanks a lot and really good job, love your plugin

    https://wordpress.org/plugins/advanced-custom-fields/

Viewing 1 replies (of 1 total)
  • Thread Starter Matteo Legittimo

    (@mattleg)

    Solved

    $field = $_POST[‘fields’];

    // Create a new post
    $post = array(
    ‘post_status’ => ‘draft’ ,
    ‘post_title’ => $field[‘field_53441cc439e2c’] ,
    ‘post_content’ => $field[‘field_53441cf839e2d’]
    );

Viewing 1 replies (of 1 total)
  • The topic ‘Get field in acf_form’ is closed to new replies.