Can Bricks display all fields in an ACF field group ?
I want to be able to display a category archive and display all the fields of the field group, where the field group is the same name as the category.
Thanks!
Can Bricks display all fields in an ACF field group ?
I want to be able to display a category archive and display all the fields of the field group, where the field group is the same name as the category.
Thanks!
As far as I know it’s not natively possible.
Here is an article outlining a php based solution: ACF - Get All Fields In A Field Group
I think that’ll only work if all the fields are of the same type unless you add conditions per field type.
Personally though I feel like this is over complicating somehting rather simple. I’m assuming you have a template for these pages so why not add the fields to the categories themselves and then just set up all the fields in the template once, maybe using a repeater if they can have variing amounts of fields.
But well I don’t know your specific use case so feel free to ignore the last part
In my use case, each category will have a separate set of fields to display, so every category will need its own template, it is not a good solution. So a better solution would be to be able to connect the category to the relevant group of fields. I guess php is the only way. Thanks for confirming.