Title: Plan future posts from frontend form?
Last modified: April 23, 2022

---

# Plan future posts from frontend form?

 *  Resolved [kajahal](https://wordpress.org/support/users/kajahal/)
 * (@kajahal)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plan-future-posts-from-frontend-form/)
 * Hi, I also want to be able to plan future posts from the frontend form, I see
   there is an option to set post status (I use select field for that – works fine)–
   but the problem is, there is no way to add the date (acf date field) when post
   needs to be published.
 * Is there any way to do this?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/plan-future-posts-from-frontend-form/#post-15616867)
 * Hello,
 * Thanks for the feedback!
 * Using the ACFE Form, you can set a future date on a post with the `acfe/form/
   submit/post_args` hook ([See documentation](https://www.acf-extended.com/features/modules/dynamic-forms/post-action#post-arguments)).
 * That hook will let you define the post arguments later passed to the `wp_insert_post()`
   function ([See documentation](https://developer.wordpress.org/reference/functions/wp_insert_post/)).
   In order to set a scheduled date, you can set a future date (in the `Y-m-d H:
   i:s` format), and enable the `edit_date` parameter. [See stackoverflow topic](https://wordpress.stackexchange.com/a/149241).
   Usage example:
 *     ```
       add_filter('acfe/form/submit/post_args/form=my-form', 'my_form_post_args', 10, 4);
       function my_form_post_args($args, $type, $form, $action){
   
           // schedule post date
           $args['post_date'] = '2022-05-20 10:00:00';
           $args['edit_date'] = true;
   
           // return
           return $args;
   
       }
       ```
   
 * Hope it helps!
 * Have a nice day!
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘Plan future posts from frontend form?’ is closed to new replies.

 * ![](https://ps.w.org/acf-extended/assets/icon-256x256.png?rev=2071550)
 * [Advanced Custom Fields: Extended](https://wordpress.org/plugins/acf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-extended/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/plan-future-posts-from-frontend-form/#post-15616867)
 * Status: resolved