Closed octoxan closed 1 year ago
hey @octoxan try this:
$footer
->addGroup('column_1', ['layout' => 'block'])
->addText('title', ['label' => 'Title'])
->endGroup();
`+ more docs/info can be found over on: https://github.com/StoutLogic/acf-builder/
Thanks @mike-sheppard that worked perfectly! There's no grouping docs at https://github.com/StoutLogic/acf-builder/ (unless I'm blind lol), and the docs at https://github.com/Log1x/acf-builder-cheatsheet#group for groups are incorrect apparently. I'll make a PR to the cheatsheet.
Following the documentation and the cheatsheet, the following code does not work. It creates an empty group in the ACF UI.
Perhaps I'm adding the sub_fields wrong, but there is no documentation for that anywhere it seems.
Tried this as well, still an empty group: