Support

Account

Home Forums General Issues Front-end custom field not saving data to custom post type

Unread

Front-end custom field not saving data to custom post type

  • Hello every one, Please help regarding on saving data from this form to custom post type I’ve created.

    add_shortcode( ‘schmooze-post-form’, ‘schmoozePostForm’ );

    function schmoozePostForm() {
    acf_form(array(
    ‘post_id’ => ‘new_post’,
    ‘post_title’ => true,
    ‘field_groups’ => array(1732), // ACF Field Groups ID(‘s)
    ‘form’ => true,
    ‘new_post’ => array(
    ‘post_type’ => ‘schmooze_blog’, // You can change to a custom post type
    ‘post_status’ => ‘publish’
    ),
    ‘submit_value’ => __(“Submit New Post”, ‘acf’)
    ));
    }

Viewing 1 post (of 1 total)

The topic ‘Front-end custom field not saving data to custom post type’ is closed to new replies.