Some pages don’t fit a fixed template. A product page might need a hero, a feature grid, and a pricing table. The next one only needs a hero, a long text block, and a testimonial — in a different order. Hard-coding every combination isn’t realistic, and handing editors a blank canvas usually ends with inconsistent designs.
This is exactly the problem the ACF Flexible Content field solves. Content editors pick from a set of predefined sections (“layouts”), fill them in, and arrange them in any order. The catch has always been the output: displaying flexible content traditionally means writing a PHP loop with have_rows(), get_row_layout(), and a template file for every layout.
In this tutorial, you’ll learn how to display an ACF Flexible Content field directly in the WordPress Block Editor using Blocks for ACF Fields PRO. You’ll design each layout once with regular blocks, and every post will render its own sections, in its own order — without writing a single line of code.
What Is ACF Flexible Content?
A Flexible Content field is like a Repeater field with a twist. A Repeater has one fixed set of sub fields, so every row looks the same. A Flexible Content field has several layouts, and each layout has its own sub fields. Every row the editor adds picks one of those layouts.
| Repeater | Flexible Content | |
|---|---|---|
| Sub fields per row | Same for every row | Depend on the layout the row uses |
| Typical use | Lists of similar items (team members, FAQs, specs) | Page sections (hero, gallery, testimonial, CTA) |
| Order of content | Rows are reordered, but all look alike | Editors choose which sections appear and in what order |
That makes Flexible Content the natural choice for section-based pages: landing pages, service pages, case studies, or — in our example — tour pages for a travel agency.
The Case Study: Tour Pages for a Travel Agency
Imagine a small travel agency that sells very different trips:
- Swiss Alps Sunrise Trek — a three-day hike that needs a day-by-day itinerary.
- Marrakech Food & Culture Weekend — a city break where a guest testimonial and the cooking class matter more than an itinerary.
Both pages should look like they belong to the same brand, but they don’t share the same structure. With a Flexible Content field, the agency gets a small library of sections:
| Layout | What it shows |
|---|---|
| Hero | Title, subtitle, background image, and a button |
| Text + Image | A heading and rich text next to a photo |
| Highlights | A heading and a grid of highlight cards (a nested Repeater) |
| Itinerary | A heading and a day-by-day accordion (a nested Repeater) |
| Testimonial | A guest quote, name, and trip info |
| Call to Action | A heading, short text, and a booking button |
Each tour uses only the sections it needs, in the order that tells its story best. The design of every section is built once, in the Site Editor.


What You’ll Need
| Tool | Why it’s needed |
|---|---|
| WordPress with a block theme | We’ll design the tour template in the Site Editor. This tutorial uses Twenty Twenty-Five. |
| Advanced Custom Fields PRO (or Secure Custom Fields) | Provides the Flexible Content field. In ACF, Flexible Content is a PRO field type. |
| Blocks for ACF Fields PRO | Displays the Flexible Content field in the Block Editor and lets you design every layout with blocks. |
Flexible Content support is a PRO feature in Blocks for ACF Fields.
Step 1 — Create the “Tour” Post Type
If you already have a post type (or you want to use regular Pages), you can skip this step.
Since ACF 6.1, you can register post types without code. Go to ACF → Post Types → Add New and create a post type:
- Plural Label: Tours
- Singular Label: Tour
- Post Type Key:
tour
In this example, the post type supports Title, Featured Image, and Excerpt only. We don’t need the main content editor, because every tour page will be built from the Flexible Content field. Without the editor, the ACF fields fill the whole edit screen, which makes them easier for editors to work with.

Step 2 — Create the Flexible Content Field Group
Go to ACF → Field Groups → Add New and name the group Tour Page Sections. Add one field:
- Field Type: Flexible Content
- Field Label: Page Sections
- Field Name:
tour_sections - Button Label: Add Section
Then add the layouts and their sub fields:
| Layout | Sub field | Type |
|---|---|---|
Hero (hero) | hero_title | Text |
hero_subtitle | Text Area | |
hero_image | Image | |
hero_button | Link | |
Text + Image (text_image) | ti_heading | Text |
ti_text | WYSIWYG Editor | |
ti_image | Image | |
Highlights (highlights) | hl_heading | Text |
hl_items | Repeater → hl_item_title (Text), hl_item_text (Text Area) | |
Itinerary (itinerary) | it_heading | Text |
it_days | Repeater → it_day_title (Text), it_day_details (Text Area) | |
Testimonial (testimonial) | t_quote | Text Area |
t_name | Text | |
t_trip | Text | |
Call to Action (cta) | cta_heading | Text |
cta_text | Text Area | |
cta_button | Link |
Notice that two layouts contain a nested Repeater. That’s no problem — Blocks for ACF Fields can display a Repeater inside a Flexible Content layout, as you’ll see in Step 6.
Finally, set the Location Rules to Post Type is equal to Tour and publish the field group.

Step 3 — Add Sections to Your Tours
Go to Tours → Add New Tour. Below the title, you’ll see the Page Sections field. Click Add Section, choose a layout, and fill in its sub fields. Repeat until the page tells its story, and drag sections to reorder them.
For our example:
- Swiss Alps Sunrise Trek: Hero → Highlights → Itinerary → Text + Image → Call to Action
- Marrakech Food & Culture Weekend: Hero → Text + Image → Testimonial → Highlights → Call to Action
Same sections, different choices, different order. That’s the whole point of Flexible Content.

Step 4 — Open the Tour Template in the Site Editor
Instead of designing the sections inside every tour, we’ll design them once in the template that all tours share.
- Go to Appearance → Editor → Templates.
- Click Add New Template and choose Single item: Tour.
- Remove the default post content blocks you don’t need (the tour content comes from the Flexible Content field).
Because this is a template for the Tour post type, Blocks for ACF Fields automatically knows which field groups belong to it.

Step 5 — Insert the Flexible Content Field
Inside the template:
- Insert the ACF Field block where the sections should appear.
- In the field picker, choose Page Sections (
tour_sections). - Under Display As, keep List — each row is rendered as a full section, stacked vertically.
The block becomes an ACF Flexible Content block and automatically creates one layout block for every layout in the field: Hero, Text + Image, Highlights, Itinerary, Testimonial, and Call to Action. If you add a new layout in ACF later, it shows up here automatically.
Set the block alignment to Full width so every section can stretch edge to edge, and set Block spacing to 0 so the sections sit flush against each other.

Step 6 — Design Each Layout with Blocks
This is where Flexible Content becomes visual. The editor shows one layout at a time. Use the Editing: … switcher in the block toolbar (or the Layout to edit dropdown in the sidebar) to move between layouts.

Inside a layout, type / to add blocks. The first suggestion is ACF Flexible Content Sub-Field — pick it, choose a sub field, and it turns into the right block: an ACF Text block for text fields, an ACF Image block for images, an ACF Button block for links, and so on. You can freely mix these with core blocks like Group, Columns, or Spacer.
Here’s how each tour section was built:
Hero
- ACF Text blocks for the title (as
h1) and subtitle, plus an ACF Button for the link — all inside a Group with a semi-transparent dark background so the text stays readable. - The layout’s background image comes from the
hero_imagesub field. Select the layout block, open Styles → Background, choose ACF Image, and pick the Background Image sub field. Every tour now gets its own hero photo.

Text + Image
- A Columns block: the heading and rich text on the left, an ACF Image block on the right with a 4:3 aspect ratio and rounded corners.
Highlights (nested Repeater)
- An ACF Text block for the heading.
- An ACF Repeater block set to Grid with three columns, loading the
hl_itemssub field. Inside each grid item, a white Group holds the item title and description.

Itinerary (nested Repeater as an accordion)
- An ACF Accordion block loading the
it_daysRepeater. The day title becomes the accordion heading and the details become the content, with no extra JavaScript.

Testimonial and Call to Action
- Simple layouts: ACF Text blocks for the quote, name, trip info, and headings, with a background color on the layout block itself. Layout blocks support background colors, padding, borders, border radius, and shadows, so each section can have its own look.

When you’re done, click Save.
Step 7 — View the Result
Open any tour on the front end. Blocks for ACF Fields loops through the rows of tour_sections and renders each row with the layout block it uses — in exactly the order the editor arranged them.
- The Swiss Alps tour shows its highlights and a day-by-day itinerary.
- The Marrakech tour skips the itinerary entirely and shows a cooking-class section and a guest testimonial instead.
Rows that use a layout you haven’t designed (left empty) are simply skipped, so nothing broken ever appears on the page.


Tips for Working with Flexible Content
- Preview real rows: When you place an ACF Flexible Content block in a post or page (instead of a template), a Preview Rows toggle appears in the toolbar and sidebar. It shows the actual rows of that post, so you can check the result without leaving the editor. Double-click any row to jump back to editing its layout.
- New layouts appear automatically: Add a layout to the field in ACF, and the next time you open the template a new, empty layout block is waiting for you.
- Show a message when empty: In Output Settings, enable Show message if empty to display a fallback text when a post has no sections yet.
- Reuse the field elsewhere: The same Flexible Content block works with fields on the current post, a specific post, an options page, terms, and users.
Conclusion
ACF Flexible Content is one of the best ways to give editors freedom without losing design consistency — and with Blocks for ACF Fields PRO, you no longer need PHP templates to display it. Define your sections in ACF, design each layout once with blocks, and let every page combine those sections however it needs.
To learn more about the available settings, check out the official documentation: Flexible Content Documentation