Support

Account

Home Forums Add-ons Repeater Field Get $_POST['acf'] value of repeater field in post object Reply To: Get $_POST['acf'] value of repeater field in post object

  • My English is not to bad but when I have to express myself technically it sometimes gets a little bit off. Let me try to make it clearer by explaining my situation.

    I have a group: CLIENT
    – Name field (Post title)
    – Address field (text)
    – Phone field (number)
    – Email addresses field (repeater)

    I have a group: MEASUREMENT
    – Client field (Post object from CLIENT group)
    – Measurement field (number)
    – Some other unimportant fields

    When I add a measurement post (and within that post I have selected the Client via the Post Object field) I want to be able to mail the measurement details to the email addresses from the Clients ‘Email addresses field (repeater)’ but that field is NOT in this Group but in the CLIENT group.

    I know how to get sub field values from a repeater field in the SAME GROUP but I don’t know how to get sub field values from a repeater field in ANOTHER GROUP (via a Post Object field) using $_POST[‘acf’].

    With get_field I know I can get the values like this:
    get_field('company_email_addresses', $measurement_client->ID);

    But how does this work with $_POST[‘acf’]?