Support

Account

Home Forums Front-end Issues Front end creat post

Helping

Front end creat post

    • olaeborn

    • September 3, 2013 at 12:53 am

    Thank for a super plugin an interesting tutorial how to create front end forms to create new posts. (http://www.advancedcustomfields.com/resources/tutorials/using-acf_form-to-create-a-new-post/)

    I try to make it work but i just don´t understand how to specify the field_groups.

    What should i write in ‘field_groups’ => array(123) ?

    An example would be really helpful.

    Thanks
    /Ola

    $args = array(
    ‘post_id’ => ‘new’,
    ‘field_groups’ => array( 123 )
    );

    • Elliot

    • September 3, 2013 at 2:35 pm

    Hi @olaeborn

    Each field group has an ID (such as 123). The acf_form function contains an arg for field_groups – which you can set as an array of field group ID’s

    Does this explain what the number is?

    Thanks
    E

Viewing 2 posts - 1 through 2 (of 2 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.