The Flexible Content display format renders an ACF Flexible Content field row by row. You design each layout of the field with blocks in the editor, and on the frontend every row is rendered with the layout it uses — in the order the rows were added.
It is a good fit for page builders made with ACF: hero sections, feature lists, testimonials, call-to-action bands, and any content where editors pick and order blocks of different shapes.
Supported Field Types
The Flexible Content display format supports the following field types:
- Flexible Content
Layouts
Loading a Flexible Content field creates an ACF Flexible Content block with one ACF Flexible Content Layout block per layout defined in ACF. The list of layouts follows the field:
- Layouts added to the field in ACF later are added to the block automatically, and renamed layouts follow their new label.
- A layout that was deleted in ACF is flagged in the editor with a Remove layout button; it is never rendered.
- Layout blocks cannot be moved, duplicated, or removed by hand, so every layout always has exactly one design. If a copy does appear, only the first one is used and the copy is flagged.
Inner Blocks (Layout Content)
Each layout block is a container you fill with blocks. They are repeated for every row that uses that layout.
How to add blocks
- Pick the layout to edit — from the Layout to edit control in the sidebar, or the Editing: … menu in the block toolbar. Only one layout is shown in the canvas at a time.
- Click inside the layout and use the “+” inserter, or type
/. The inserter puts the ACF Flexible Content Sub-Field block first. - Pick one of the layout’s sub fields. The sub field is then displayed with the matching block — Text, Image, Button, and so on — with all of its usual settings.
- Standard WordPress blocks (Heading, Paragraph, Image, Group, Columns, etc.) also work inside a layout.
A layout without any blocks renders nothing, so rows that use it are skipped on the frontend.
Edit Layouts and Preview Rows
The sidebar notice has a Flexible content mode switch with two options:
- Edit Layouts — design one layout at a time. Each layout previews the first row that uses it, so you see real values while you work.
- Preview Rows — shows every row of the field in order, each with its own layout, exactly as it will appear on the frontend. Double-click a row to jump back and edit its layout.
Preview Rows needs real values to loop over, so it is only available when the field source has content — for example the current post in the post editor, or a specific post you picked as the source.
Customization
Field-level controls live in the ACF Flexible Content block’s sidebar; design controls live on each layout block, so every layout can be styled on its own.
| Customization | Description | Note |
|---|---|---|
| Block Spacing | Vertical gap between rows. | ACF Flexible Content block → Dimensions panel. |
| Empty Message | Toggle (“Show message if empty”) plus fallback text shown when the field has no rows. | ACF Flexible Content block → Output Settings panel. |
| Layout: Color | Background color or gradient of the layout. | ACF Flexible Content Layout block. |
| Layout: Background Image | Image behind the layout, with focal point, size, and repeat. The image can also come from an ACF image field of the row. | ACF Flexible Content Layout block → Background panel. See ACF Background Image. |
| Layout: Layout | How blocks inside the layout are arranged: flow, flex (row or stack), or grid. | ACF Flexible Content Layout block. |
| Layout: Padding & Block Spacing | Inner padding of the layout and the gap between its blocks. | ACF Flexible Content Layout block → Dimensions panel. |
| Layout: Minimum Height | Minimum height of the layout. | ACF Flexible Content Layout block → Dimensions panel. |
| Layout: Border & Shadow | Border color, style, width, radius, and a drop shadow. | ACF Flexible Content Layout block. |
The ACF Flexible Content block also supports the following standard WordPress block controls: Block Alignment (wide, full) and Dimensions (margin, padding).
Field Sources
The Flexible Content block works with every field source and inside a Query Loop. Sub field blocks inside a layout always read from the current row, so you only pick the sub field name.