• Hello guys,

    I have a question, how could I save the post as a “draft” after editing it? My code below doesn’t seem to work, the post still goes as published after I edit it in the frontend.

    acf_form(array(
       'post_id' => get_the_ID(),
       'post_title' => true,
       'return' => '%post_url%',
       'new_post' => array(
          'post_type' => 'event',
          'post_status' => 'draft',
    ),
    'submit_value' => 'Update event'));

    Thanks.

    https://www.ads-software.com/plugins/advanced-custom-fields/

  • The topic ‘Editing the post using acf_form (frontend ACF)’ is closed to new replies.