Home › Forums › General Issues › Determine which tab belongs to a field › Reply To: Determine which tab belongs to a field
The link in the tab
<a href="" class="acf-tab-button" data-placement="top" data-endpoint="0" data-key="field_61719047e2a83">tab 1</a>
data-key is the tab field’s field key. The actual tab field is hidden in the field group where it normally should appear.
<div class="acf-field acf-field-tab acf-field-61719047e2a83" data-type="tab" data-key="field_61719047e2a83"> ....
The fields in this tab are all of the fields in the field group that come after the tab field (the hidded element) and before the next tab field or the end of the group, or possible the end of the “parent” field when the tab is in a repeater, group, or flex field.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.