Home Forums General Issues Iterate through tab fields Reply To: Iterate through tab fields

  • Tabs are an input layout feature to aid in making post editing more user friendly and not something meant to be used on the front end of the site.

    But it would be possible. The only way that I can think of to do this would be to get the fields in the field group and loop through the fields to find the tabs, display the labels and then display the fields until you get to the next tab.

    I’m not sure this is a documented function, but I’ve used it when building plugins to extend ACF.

    $fields = get_field_group($group_key);