Support

Account

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