Repeater Table

PRO 4 min read Updated
On this page

The Repeater Table display format renders an ACF Repeater field as an HTML table: every repeater row becomes a table row, and every sub field becomes a column. Columns are blocks, so they can be reordered, hidden, relabelled, and styled one by one, while each cell reuses the ACF Text, ACF Image, ACF Button, or ACF Icon block with all of its settings.

The format suits price lists, specification sheets, schedules, team directories, and any repeater whose rows share the same set of values.

Supported Field Types

The Repeater Table display format supports the following field types:

  • Repeater

Inside the table, a sub field becomes a column when it can be shown as one of these cell types:

Sub field typeDefault cellAlso available
ImageImage—
Icon PickerIcon—
Link, Page LinkButtonText
Email, URLTextButton
FileButton—
Any other field the ACF Text block can displayText—

Gallery, oEmbed, Group, Repeater, Flexible Content, Clone, Message, Accordion, Tab, Google Map, Post Object, Relationship, Taxonomy, and User sub fields do not get a column. Sub fields inside a Group that sits in the repeater are listed individually.

Columns

Loading a repeater field with Display as: Table creates one ACF Table Column block per supported sub field, in the order the sub fields have in ACF, all visible.

  • Reordering — select a column (click a cell or use List View) and move it with the toolbar arrows, or drag it in List View.
  • Hiding — turn off Show column in the column’s sidebar. The column disappears from the canvas and the frontend but keeps its settings; it stays in List View with “(hidden)” after its name, so it can be selected and shown again.
  • Removing — remove the column block like any other block.
  • Syncing — after adding sub fields to the repeater in ACF, click Sync columns in the table’s toolbar. Sub fields without a column are added at the end; existing columns are left untouched.
  • Adding manually — click Add column in the table’s toolbar, then pick a sub field from the list shown in the new column.
  • Changing the cell type — when a sub field supports more than one cell type (for example a Link as Button or Text), use Display as in the column’s sidebar. The cell block is replaced and its settings are reset.

Editing in the Canvas

The first row of the table is editable: click a cell to select its ACF Text, Image, Button, or Icon block and adjust it — the change applies to that column in every row. The other rows are live previews; click one to make it the editable row. Header labels can be typed directly into the header row.

Customization

Table-level controls live in the ACF Table block’s sidebar; column-level controls live in each ACF Table Column block’s sidebar.

CustomizationDescriptionNote
Show HeaderShow or hide the header row with the column labels.Lives in the Table panel.
Striped RowsGive every second row a background color.Lives in the Table panel.
On MobileBelow 480px: Scroll horizontally (default) keeps the columns and scrolls sideways; Stack rows as cards turns each row into a card with the column label above each value.Lives in the Table panel. Stacking is previewed in the editor’s Mobile preview.
Header ColorText and background color of the header row.Lives in the Color panel.
Stripe ColorBackground color of the striped rows.Lives in the Color panel. Only shown when Striped Rows is on.
Cell BorderColor, style (solid, dashed, dotted, none), and width of every cell border, set together in one control.Lives in the Border panel. No per-side settings.
Cell PaddingInner padding of every header and body cell.Lives in the Dimensions panel.
Empty MessageToggle (“Show message if empty”) plus fallback text shown when the repeater has no rows.Lives in the Output Settings panel.
Column: Sub FieldWhich sub field the column shows.ACF Table Column → Column panel.
Column: Display AsCell type for sub fields that support more than one.ACF Table Column → Column panel. Only shown when there is a choice.
Column: Header LabelText of the column’s header cell. Defaults to the sub field label.ACF Table Column → Column panel, or type in the header row.
Column: Show ColumnHide the column without removing it.ACF Table Column → Column panel.
Column: WidthColumn width in px, %, em, or rem.ACF Table Column → Column panel.
Column: AlignmentHorizontal (left, center, right) and vertical (top, middle, bottom) alignment of the header and body cells.ACF Table Column → Column panel.

The block also supports the following standard WordPress block controls: Block Alignment (wide, full), Color (text, background), Typography (font size), and Dimensions (margin, padding).

CSS Reference

The block wrapper carries acf-field-blocks-table, acf-field-blocks-table--scroll or acf-field-blocks-table--stack, and is-striped when striped rows are on. Inside it, .acf-field-blocks-table__wrapper holds table.acf-field-blocks-table__table. Every body cell has a data-label attribute with its column label.

Styling is driven by these custom properties on the wrapper:

Custom propertyDefault
--afb-table-header-bgtransparent
--afb-table-header-colorinherit
--afb-table-stripe-colorrgba(0,0,0,0.04)
--afb-table-border-color#dcdcde
--afb-table-border-width1px
--afb-table-border-stylesolid
--afb-table-cell-padding0.5em 0.75em

Filters

The table passes through the shared afb/attributes, afb/value, and afb/output filters, plus its own afb/table/attributes, afb/table/value, and afb/table/output. Each cell block keeps its own filters (for example afb/text/value).