ACF blocks are custom blocks for the WordPress editor, built with Advanced Custom Fields PRO. Your team fills in simple fields, such as a heading, an image or a list of testimonials, and the block handles the design. They give editors freedom without letting anyone break the layout.
We design and build WordPress websites ourselves, and custom blocks are how we build them. If your site runs on a page builder and editing it has become a chore, tell us about your project.
This guide covers what ACF blocks are, when they're worth it, how to build one step by step, and the mistakes that make blocks a pain to edit.
What Are ACF Blocks?
ACF stands for Advanced Custom Fields, a WordPress plugin that adds extra fields to your pages and posts. ACF blocks are a feature of the paid version, ACF PRO.
An ACF block is a block you design for your own site. A developer decides which fields it has and how it looks. Your team then adds it to a page in the normal WordPress editor and fills in the fields.
How They Differ From Ordinary Blocks
WordPress's own blocks are general tools: a paragraph, an image, a set of columns. An ACF block is made for one job on your site, such as a pricing table or a team section. It always matches your design, however it's filled in.
Why Developers Like Them
ACF's documentation says its blocks use a PHP framework, so developers don't need the JavaScript or React knowledge that native WordPress blocks call for. Each block is rendered with a PHP template, which gives full control over the HTML.
Why Businesses Choose ACF Blocks Over a Page Builder
Page builders promise freedom. Anyone can drag sections around and change any setting. In practice, that freedom is the problem.
What a Page Builder Really Costs You
A page builder loads its own code on every page, whether you use it or not. Pages get heavier and slower. Layouts drift as different people tweak spacing and fonts. And because your content is wrapped in the builder's own code, leaving it later means rebuilding pages by hand.
Elementor and similar builders give you a site that looks okay on launch day. They fall short once real people start editing it week after week.
What Custom Blocks Give You Instead
With ACF blocks, your team gets a small set of sections made for your pages. They can add a testimonial block, swap an image or reorder sections. They can't break the design, because the design lives in the block, not in the editor.
That's how we approach WordPress web design: a set of custom blocks made for your pages, with no page builder underneath. If you're weighing up platforms first, our guide on why we build on WordPress explains the reasoning.
ACF Blocks vs Native Blocks vs Flexible Content
There's more than one way to give editors custom sections in WordPress. Here's how the main options compare.
| Option | Built with | Best for |
|---|---|---|
| ACF blocks | PHP templates and ACF fields | Business sites with a set of branded sections |
| Native blocks | JavaScript and React | Blocks with heavy interaction inside the editor |
| ACF flexible content | ACF fields on a fixed page layout | Older themes that don't use the block editor |
ACF Blocks vs Native Blocks
Native blocks are written in JavaScript and React. They suit blocks with lots of interaction inside the editor itself. For most business sites, that's more work than the job needs. ACF blocks get you a similar editing experience with far less code to look after.
Where a site needs something more involved, like a custom plugin or tool, that's custom plugins and software territory rather than a single block.
ACF Blocks vs Flexible Content
Flexible content keeps editors inside one fixed page layout made of ACF fields. It works, but editors don't see a live preview while they edit. ACF blocks show the design inside the editor and sit happily alongside WordPress's own blocks.
How to Build an ACF Block, Step by Step
This walk-through follows ACF's own documented approach. It assumes you control the theme or a plugin on the site.
What You Need
You need ACF PRO, because blocks aren't in the free version. Our guide to ACF Pro or the free version explains the difference. You also need a theme or plugin where you can add code.
Register the Block With block.json
Each block lives in its own folder. Inside it, a `block.json` file sets the block's name, title and settings. You then register the folder with WordPress's `register_block_type()` function. ACF's documentation says the main features of any ACF or WordPress block are defined in `block.json`.
Add a Field Group
Create a field group in ACF with the fields the block needs, such as a quote, a name and a photo. Then use ACF's location rules to assign the field group to your block.
Write the Template
The template is a PHP file that outputs the block's HTML. You load values with `get_field()`, just as you would in a normal theme. For repeating content, such as a list of features, a Repeater field and `have_rows()` work too.
Style It and Check the Preview
Add a stylesheet in the same folder. ACF shows a live preview as you edit, so check the editor view matches the live page. If the two drift apart, editors stop trusting what they see.
Go Further With InnerBlocks, Variations and Styles
ACF blocks support the same features as WordPress's own blocks, including InnerBlocks, variations and styles. InnerBlocks lets a block hold other blocks inside it, such as a card with its own heading and buttons.
Mistakes That Make ACF Blocks a Pain to Edit
Most problems with ACF blocks come from how they were built, not from ACF itself.
No Defaults or Fallbacks
If a block breaks when a field is empty, editors will avoid it. Every field needs a sensible default, and the template should cope with missing content.
Inline Styles and One-Off Blocks
Styles written into the template make blocks hard to change later. So does building a new block for every page. A small library of well-made blocks beats dozens of one-offs.
Fields That Don't Travel
ACF can save field groups as files in an `acf-json` folder in your theme. Skip that, and fields get lost or out of step between your test site and the live one.
Blocks That Don't Show Up
A common question on developer forums is why a new block doesn't appear in the editor. Usually the block name in `block.json` is missing its namespace, or the folder path in `register_block_type()` is wrong.
Want a WordPress Site Built on Blocks Your Team Can Edit?
If your site runs on a page builder, or your editors struggle with it, we can help.
Our WordPress web design starts with your page designs. We plan a block library around them and build each block ourselves. We move your content off the page builder and set up redirects so you keep your rankings. You own the code.
We're one team based in Leicestershire, working with businesses across the UK. Business websites cost £2,000–£6,000 + VAT and bespoke websites £6,000–£15,000 + VAT. We agree a written scope and a fixed price before we start.
Tell Us How Your Site Is Built Now
Whether you're stuck with a page builder or starting fresh, we'll plan the blocks your team needs. Have your WordPress site built on custom blocks, or tell us how your site is built now.