This feature requires ACF Pro. To fully utilize the Dynamic HTML rendering option, it is recommended that you install and activate Dynamic Shortcodes, which are included in your Dynamic Toolbox for Bricks license.
The ACF Flexible Content feature lets you dynamically render layouts defined in an ACF Flexible Content field within Bricks. It provides a structured interface to map individual ACF layouts to Bricks templates or custom HTML blocks, offering extensive flexibility for dynamic page construction.
Settings
After selecting the ACF Flexible Content element from the Bricks panel, you will be prompted to configure the following options:
Select ACF Flexible Content Field: Choose the specific ACF field you want to render. This field must be of type “Flexible Content”.
Retrieve the Field From: Specify the context from which to fetch the ACF data. Supported sources:
Current Post
Current User
Current Author
Current Term
Options Page
Layouts Configuration (Repeater)
Each layout within the Flexible Content field can be mapped individually with the following controls:
Layout: Select the layout name as defined in your ACF field group.
Display Mode:
Template: Render using a Bricks template.
Dynamic HTML: Render using a custom HTML snippet with Dynamic Shortcodes.
Compatibility with Other Features
Dynamic Shortcodes: When using HTML mode, Dynamic Shortcodes must be active to enable Dynamic Shortcodes parsing. If not installed, a warning is displayed, and Dynamic Shortcodes expansion will not work.
Bricks Templates: You can reference Bricks templates directly for each layout, making it easy to separate structure and logic.
Usage Summary
To use the ACF Flexible Content feature:
Define your Flexible Content field with layout blocks using ACF Pro.
Add the ACF Flexible Content element in Bricks.
Configure the field source and define mappings for each layout.
Choose Template or Dynamic HTML mode based on your use case.
(Optional) Install Dynamic Shortcodes to enable advanced rendering in HTML mode.
This setup empowers you to conditionally render dynamic sections using ACF and Bricks in a fully modular and reusable way.