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.