One of the additional features available in Pro edition of Advanced Custom Fields is the Repeater field using which unlimited number of field groups can be populated in the admin. In this tutorial I show how a
FAQrepeater field having a
Questiontext type and
AnswerWysiwyg Editor type sub fields attached to a static Page can be set up such that answers slide down when the questions are clicked using jQuery Collapse. We will also add Open all and Close all buttons that open and close all the panels at once respectively. Live Demo Screenshots: With a FAQ row expanded:
Step 1Create a
FAQfield group and add
FAQrepeater field in it with
Questiontext sub field and
AnswerWysiwyg Editor sub field. Here's an export file of the same.
To view the full content, please sign up for the membership.
Already a member? Log in below or here.