Use [each] on a group of fields..

[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>';
    }
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer