Setting Up ACF
We will take a look at how to set up ACF to work with GutenBricks.
Last updated
We will take a look at how to set up ACF to work with GutenBricks.
Last updated
This article is about the WordPress plugin GutenBricks, which allows you to create Gutenberg blocks using the Bricks Builder page builder in a no-code approach. Visit GutenBricks.com for more information.
Do what you normally do with ACF and Bricks, but make sure to set the location rule so that the field group is linked to the template. Read: Most Important Step: Set Location Rule
Step 1: Create a field group as usual
Step 2: Set the location rule to Bricks Template or individual template post <- MOST IMPORTANT
Step 3: Apply the field values in the Bricks template
Step 4: Enter the ACF value in the Gutenberg editor
Once you create a field group, all you have to do is set up a correct location rule to make the field group visible when users edit the block in the Gutenberg editor.
There are two common ways:
Assigning Post
to a particular block as shown in the screenshot below.
Or less commonly, assigning Post Type
to Template.
In this case, the field group will be visible in every block. This can be handy if you have general fields used by every block.