Home › Forums › ACF PRO › Get all values from user profile acf_form › Reply To: Get all values from user profile acf_form
almost! 🙂
I got all the objects and been able to send them through email,
the only problem left is I get the chosen radio button value, and I need the chosen radio button’s name.
This is my relevant code now:
$body = '';
$fields = get_field_objects($post_id);
if( $fields )
{
foreach( $fields as $field_name => $field )
{
$body .= '<li>';
//the field label:
$body .= '<h3>' . $field['label'] . '</h3>';
//the chosen radio button value:
$body .= $field['value'];
$body .= '</li>';
}
}
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.