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’]?
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.