[ad_1]
No, it’s not currently possible to iterate over fields in a group with [each] — each is for array-type fields such as relationships and media uploads. One would have to list the fields in the template one by one or access the Group’s fields in PHP.
Untested, but something like this might work:
// Get the Pod object.
$pod = pods('your_pod_name');
// Get all fields for the Pod.
$fields = $pod->fields();
// Iterate through the fields.
foreach ($fields as $field) {
// Check if the field is part of a group.
if ($field['group'] === 'your_group_name') {
// Do something with the field...
echo $field['name'] . '<br>';
}
}
