Support

Account

Home Forums Backend Issues (wp-admin) ACF group and NinjaForm Post created

Unread

ACF group and NinjaForm Post created

  • Hello,
    I created a form with the NinjaForm plugin. This form generates a new post composed of ACF fields. For simple fields I have no problems I use:

    // SUBTITLE FIELD
    function subtitle_projet ($ field) {
      // only on front end
      if (is_admin ()) {
        return $ field;
      }
      if (isset ($ _ GET ['subtitle'])) {
        $ field ['value'] = $ _GET ['subtitle'];
      }
      return $ field;
    }
    add_filter ('acf / prepare_field / key = subtitle_1622456289725', 'subtitle_projet');

    On the other hand, I cannot do the same thing for fields contained in a group (simple fields, repeater). Does anyone have any examples for me (repeater in group, subfield in group)?
    Regards

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.