Support

Account

Home Forums ACF PRO acf_form's field_groups parameter no longer works with keys, only ids

Helping

acf_form's field_groups parameter no longer works with keys, only ids

  • In ACF 4 you could do the following to display a form:

    <?php acf_form( array( 'field_groups' => array( 'acf_directory-settings' ) ) ) ?>

    acf_directory-settings is the key of a group saved as a PHP array.

    In ACF Pro this doesn’t seem to work. If you load field group by ID saved in the database it works just fine.

    The issue can be side-stepped by using the fields defined in the array with fields parameter, but since this is not available in ACF4 we need to do some checking to figure out the which arguments to use.

    Let me know if there’s any way I can send pull requests to ACF Pro 🙂

    Daniel

  • I’m stuck on the same problem.
    I responded to a previously post, (http://support.advancedcustomfields.com/forums/topic/front-end-form-and-register_field_group/#post-32096) which I hope @elliot will have a solution for.
    Did you find a solution yet?

    Tim

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘acf_form's field_groups parameter no longer works with keys, only ids’ is closed to new replies.