Support

Account

Home Forums Front-end Issues How do the date of publication by a front-end form? Reply To: How do the date of publication by a front-end form?

  • At the moment I’m using the following code:

            acf_form(array(
                     'post_id' => 'new_post',
                                            'post_title' => true,
                                            'post_content' => true,
                     'new_post'    => array(
                         'post_type' => 'post',
                         'post_status' => 'publish'
                     ),
           'return'     => '%post_url%',
           'submit_value'  => 'Опубликовать'
                  ));

    Please give an example of code that runs fast selection of the date of publication.