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);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.