Support

Account

Home Forums General Issues Specify repeater fields with acf_form

Unread

Specify repeater fields with acf_form

  • I’m using acf_form and i’m trying to specify which fields in the repeater that I want to show up on the front end. When I specify the fields it does not show the rows or allow me to add more rows. What is the proper way to handle this?

    Here is an example of my code:

    acf_form( 
      array( 
        'post_id' => $post_id,
        'field_groups' => array( 
          'group_5a6a78e7af5c6',
        ),
        'fields' => array( 
          'field_5a6a794d747d3', 
          'field_5a6a7986747d4', 
          'field_5a6a7994747d5', 
          'field_5a6a79a2747d6'
        ),
        'submit_value' => 'Save'
      ) 
    );

    Note: group_5a6a78e7af5c6 is a group that just contains the repeater.

Viewing 1 post (of 1 total)

The topic ‘Specify repeater fields with acf_form’ is closed to new replies.