Home › Forums › General Issues › Get fields of each tab › Reply To: Get fields of each tab
No, not directly. Tabs are basically a JavaScript construct. The field for a tab are not “IN” the tab. The tabs are inserted between fields just like other fields. JavaScript is used to hide all of the fields between one tab and the next tab when that tab is not active.
You could us the functions acf_get_fields($group_id) to get the list of fields in the group and then loop through the fields to find a tab, then continue looping through the fields until you get the next tab, collecting a list of fields “IN” the tab along the way.
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.