Support

Account

Home Forums General Issues If Group Is Empty

Solved

If Group Is Empty

  • I have a Group with many fields. Is there a way to check if the Group is empty without having to check each field in the Group?

  • Unfortunately, no.

    A group field is a repeater that always has exactly 1 row.

    have_rows() is always true once

    get_field() always returns an array of field_name=>value pairs, only the values will be empty.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.