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

  • Thanks for your reply.

    I guess I’m not getting it completely..? I tried this:

    
    $measurement_client_id = intval($_POST['acf']['field_5e147914518a6']);
    $measurement_client = get_post($measurement_client_id);
    $measurement_client_email_addresses = get_field('field_5e14527c1945b', $measurement_client_id);
    
    $measurement_client_id = intval($_POST['acf']['field_5e147914518a6']);
    $measurement_client = get_post($measurement_client_id);
    $measurement_client_email_addresses = get_field('field_5e14527c1945b', $measurement_client->ID);
    
    $measurement_client_id = intval($_POST['acf']['field_5e147914518a6']);
    $measurement_client = get_post($measurement_client_id);
    $measurement_client_email_addresses = get_field('company_email_addresses', $measurement_client_id);
    

    The CLIENT field is an Post Object field within the Measurement group and I want to mail the measurement report to the clients emailaddress (a repeater field within the Client group).

    My logic in above code examples is as follows:
    – I know the Client (Post Object field within the Measurement post)
    – I now know the Client Post ID
    – So I could get the email address repeater field within the Client post right?

    No luck. Am I missing something here?

    Tnx John