Home Forums Front-end Issues Set title on acf_form


Set title on acf_form

    • gab1982

    • January 7, 2021 at 1:23 am

    Hi I have tried to set a title for an acf_form I have in a page template but no title is showing in the admin, this is my code:

    						$args = array(
    							'post_id' 	   => "new_post",
    							'field_groups' => array(62),
    							'updated_message' => false,
    							'new_post'		=> array(
    								'post_title'   => $_POST['acf']['field_5ff5921bc7f1c'] . " - " . $_POST['acf']['field_5ff59276c7f1d'] . "Date:" . $_POST['acf']['field_5ff5869624818'] . "-" . $_POST['acf']['field_5ff586ba24819'],
    								'post_type'		=> 'loads',
    								'post_status'	=> 'draft'
    							'submit_value' => __("Register", 'acf')
    						acf_form($args); ?>

    The only part being set as the title is ‘Date:’ which is hard coded. Can anyone help.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.