Problem:
The issue here is that the user wanted to build an Accordion with our Repeatable field groups.
Solution:
This can be done using bootstrap. On your view that displays the repeatable field group just add the following.
[wpv-items-found] <!-- wpv-loop-start --> <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <wpv-loop> [wpv-item index=1] <div class="panel panel-default"> <div class="panel-heading" role="tab" id="heading-[wpv-post-id]"> <h4 class="panel-title"> <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-[wpv-post-id]" aria-expanded="false" aria-controls="collapse-[wpv-post-id]"> [types field='field_slug_title'][/types] </a> </h4> </div> <div id="collapse-[wpv-post-id]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-[wpv-post-id]"> <div class="panel-body"> [types field='field_slug_desc'][/types] </div> </div> </div> [wpv-item index=other] <div class="panel panel-default"> <div class="panel-heading" role="tab" id="heading-[wpv-post-id]"> <h4 class="panel-title"> <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-[wpv-post-id]" aria-expanded="false" aria-controls="collapse-[wpv-post-id]"> [types field='field_slug_title'][/types] </a> </h4> </div> <div id="collapse-[wpv-post-id]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-[wpv-post-id]"> <div class="panel-body"> [types field='field_slug_desc'][/types] </div> </div> </div> </wpv-loop> </div> <!-- wpv-loop-end --> [/wpv-items-found]
Ensure that the structure remains the same and just substitute the shortcodes above with your shortcodes.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 18 replies, has 2 voices.
Last updated by 6 years, 3 months ago.
Assisted by: Shane.