Home › Forums › General Issues › Field Types from Field Groups › Reply To: Field Types from Field Groups
Hi John,
EDIT: I should’ve specified, all this action should happen inside functions.php, not on the front end of the site.
Thanks for your reply but no – its nothing to do with users I just want to get the value of the name
attribute of every field that is an email type field from a certain Field Group.
So I have a Field Group I’ve called ‘Additional Fields for User Profile’ which is – as the name suggests – some extra fields for the User Profile page. Some of these are email fields with their Field Type set to ’email’ – what I want to do is get the value of the name
attribute of every field that has a type of email
so:
<input id="acf-field-contact_email" class="email" name="fields[field_52e10709850b3]" value="[email protected]" placeholder="" type="email">
for this field (which has a type of email
) I need to get the value: fields[field_52e10709850b3] from the name
attribute.
Thanks
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.