Skip to content

Accordion Field

Choose a tag to compare

@stevep stevep released this 02 Dec 18:06
· 89 commits to master since this release

Added the new ACF Accordion field. Must be using ACF 5.6.6 to use it.

It works just like Tab field but includes two additional methods setOpen() and setMultiExpand(). true or false can be passed as a parameter, true is default.

$fieldgroup = new FieldsBuilder('group');
$fieldgroup
  ->addAccordion('content')
    ->setOpen()
    ->addWysiwyg('content')
  ->addAccordion('background')
    ->addImage('background_image')
    ->addColorPicker('background_color');