Support

Account

Home Forums ACF PRO Display labels of all fields in group

Solved

Display labels of all fields in group

  • Hi there,

    I need to display the labels of all fields in a specific group on front end. I really need just the labels, no values, as I have no post ID available.

    So how do I get all the field labels, but not post specific. I need the field list, that was created on the backend.

    Is there a function/hook I could use, or do I have to manually query the db?

    Regards,
    Marcus

  • Ah, got it:

    $group_ID = 'group_594cfb4311590';
    $fields = acf_get_fields($group_ID);

    This does the trick. Tried to used the WP ID of the group (single integer value) with the function, but the internal ID of the group is needed.

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

The topic ‘Display labels of all fields in group’ is closed to new replies.