ACF/SCF Table reads a table field from the current post and outputs it as a proper HTML table. Edit rows and columns in the post editor and the page follows. Style it in Breakdance and switch on responsive mode for small screens.
Every table below is an ACF/SCF Table element reading a different table field saved on this page. Hover a row to see its hover colour. Narrow your browser below 768px, or open the page on a phone, to see responsive mode stack each row with its column names.
Field pxe_spec_table. Purple header, white and pale lilac striped rows, a lilac hover colour and 1px borders on every cell.
| Specification | Cove Mini | Cove Pro |
|---|---|---|
| Boiler | Single, 1.2 litres | Dual, 2.5 litres |
| Water tank | 1.8 litres | 3 litres |
| Heat-up time | 5 minutes | 9 minutes |
| Built-in grinder | Yes, 30 settings | No |
| Steam wand | Manual | Manual, cool-touch |
| Weight | 11 kg | 21 kg |
| Warranty | 2 years | 3 years |
Field pxe_nutrition_table. A cream header, no striping and bottom borders only, for a clean food label look.
| Nutrient | Per 100g | Per slice (40g) |
|---|---|---|
| Energy | 1000 kJ / 239 kcal | 400 kJ / 96 kcal |
| Fat | 1.2g | 0.5g |
| of which saturates | 0.2g | 0.1g |
| Carbohydrate | 47g | 18.8g |
| of which sugars | 1.8g | 0.7g |
| Fibre | 3.1g | 1.2g |
| Protein | 8.9g | 3.6g |
| Salt | 1.1g | 0.44g |
Field pxe_timetable_table. Dark header and rows, a slightly lighter even row and a grey hover colour.
| Time | Monday | Wednesday | Friday |
|---|---|---|---|
| 06:30 | Spin | Strength circuit | Spin |
| 12:15 | Lunchtime HIIT | Pilates | Lunchtime HIIT |
| 18:00 | Boxfit | Spin | Kettlebells |
| 19:15 | Yoga flow | Boxfit | Yoga flow |
Field pxe_rates_table. A teal header, mint even rows, extra cell padding and bottom borders only.
| Room | Sleeps | Nov to Mar | Apr to Oct |
|---|---|---|---|
| Garden Double | 2 | £95 | £140 |
| Harbour View Double | 2 | £120 | £175 |
| Family Room | 4 | £150 | £210 |
| Deluxe Suite | 3 | £210 | £290 |
Set up the field once, then manage the table from the post editor.
Install the free Table Field add-on for ACF and add a table field to your field group.
Drop ACF/SCF Table onto your page or template and enter the field's meta key.
Add rows, columns, a header and a caption in the post editor. The element outputs them as a table.
The content lives in your custom field. The look is set in Breakdance.
Enter the meta key of a table field and the element outputs its header, caption and body rows.
Below 768px the header row hides and each row becomes a stacked block, with the column name shown beside every value.
With responsive mode off, a wide table scrolls sideways inside its container instead of breaking the layout.
Set the header background, the row background, a separate even-row colour and a row hover colour.
Style the header text and the body text separately with the Breakdance typography controls.
Add inner borders to every cell and set one padding value for header and body cells.
If the field has a caption switched on and filled in, it is shown above the table.
Cell content is passed through WordPress's safe HTML filter, so links and simple formatting in cells are kept.
The field is read from the current post, so one template can show a different table on every post.
Anywhere tabular content changes from post to post.
Show a spec sheet on each product or service page, edited in the post.
Keep prices in a table field so they can be updated without opening the builder.
List class times, opening hours or event schedules.
Compare plans, models or options side by side.
Show modules, dates and locations for each course.
Let clients edit a table in a simple field without touching the page layout.
This is the full list of settings in the Breakdance editor.
| Control | What it does | Default |
|---|---|---|
| Content | ||
| Table Meta Key | The name of the table field to display. | table |
| Responsive Mode | Stack rows as cards below 768px, with column labels beside each value. | Off |
| Design | ||
| Header Background Color | Background colour of the header row. | — |
| Row Background Color | Background colour of body cells. | — |
| Even Row Background Color | Background colour of every second row. | — |
| Row Hover Color | Background colour of a row when hovered. | — |
| Cell Padding | Padding inside header and body cells. | — |
| Typography | ||
| Header Typography | Text style of the header row. | — |
| Body Typography | Text style of the body cells. | — |
| Borders | ||
| Inner Borders | Borders on every header and body cell. | — |
| Responsive Styles (responsive mode only) | ||
| Row Gap | Space between stacked rows on small screens. | — |
| Column Gap | Space between the stacked cells inside each row. | — |
A table field from the free Table Field add-on for ACF. Enter the field name in Table Meta Key.
The element reads the field with get_field(), which SCF provides as well as ACF, so the table field works with either.
With responsive mode on, the header row hides below 768px and each row stacks, with its column name beside every value. With it off, the table scrolls sideways.
Yes. It reads the field from the current post, so a single template can show each post's own table.
Nothing is output, so you will not get an empty table on posts without data.
Yes. Add one table field per table and give each element its own meta key. The four demos above each read a different field.
ACF/SCF Table is included with Phox Elements, along with 140+ other premium elements for Breakdance.