Setting Up ACF

We will take a look at how to set up ACF to work with GutenBricks.

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.

TLDR;

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

Common Workflow

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

Most Important Step: Set Location Rule

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:

  1. Assigning Post to a particular block as shown in the screenshot below.

  2. 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.

Here, we are assigning the field group to FAQ Bricks Template

Last updated