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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.