Support

Account

Home Forums Front-end Issues Use acf_form to with field to customize slug

Unread

Use acf_form to with field to customize slug

  • Hi, I am trying to create a frontend form to create a new post for a custom post type. I also need a field to customize the slug.

    I tried this:

    
    acf_form(array(
        'post_id'       => 'new_post',
        'post_title'    => true,
        'post_content'  => true,
        'post_name'     => true,
        'new_post'      => array(
            'post_type'     => 'event',
            'post_status'   => 'publish',
        )
    ));
    

    But it does not show a field for the slug.

    Thanks for any help.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.