Docs

ACF fields and blocks

ACF, ACF Pro and Secure Custom Fields: fields on pages, terms and options pages, rows of repeaters and flexible content, and ACF Blocks.

5 min read WordPress 6.6+ Updated 1 Dec 2026

What it works with

The ACF mode works the same with ACF, ACF Pro and Secure Custom Fields. W-Pencil › Integrations says which it found, like "Found: ACF Pro 6.8.10", and the mode is on as soon as one is active. Your theme needs no W-Pencil code: it prints fields as it always has, with the_field(), get_field(), have_rows() and get_sub_field(), in PHP templates or through Timber.

What gets a pencil

Field type In the popup Text One line, previewed as you type Text Area A text box, previewed WYSIWYG Editor WordPress's own editor, with its Visual and Text tabs Link Link text and address, with page suggestions Image Alt text, a new upload, or an image from the Media Library

Every other type, like Date Picker, Select, True / False or Relationship, is edited through More fields…, in ACF's own field. Field modes changes that per field.

A value gets a pencil when the theme prints it through ACF's functions, formatted (the default), and it belongs to what the page is about:

  • The page's own fields: those of the page or post you're looking at.
  • A term's fields, on that term's archive page, for people who may edit the term.
  • Options pages' fields, wherever the theme shows them, like a footer note on every page. Only for people who may open that options page.
  • The fields of an ACF Block on the page (below).

Values ACF returns unformatted, like get_field( 'title', false, false ), and values of other posts shown on the page, like cards in a list of articles, get no pencil.

Rows

Fields inside a Repeater, a Flexible Content layout, a Group or a Clone get a pencil too, row by row. The breadcrumb names the way down, like "Home › Cards #2 › Title" or "Home › Sections #3 › Quote".

W-Pencil saves into the exact row the page showed. If someone added, removed or reordered rows after your page loaded, nothing is saved, and the popup says "This field is no longer here, or its rows changed. Reload the page."

To add, remove or reorder rows, use More fields…, which shows the whole repeater as ACF does, or the backend.

Options pages

A field on an options page shows wherever the theme uses it, so the popup says "Shared: shown on every page that uses these site settings." Open in the backend opens the options page itself. WordPress keeps no revisions of options: use Undo straight after a save, and W-Pencil › Activity lists the save. With WPML or Polylang, each language's options are saved apart, as ACF keeps them.

ACF Blocks

ACF Blocks get pencils as Gutenberg's own blocks do, wherever the block sits: in the page's content, in a synced pattern or in a template part. The breadcrumb names the block, like "Home › Hero › Heading". A save changes that one block's data and leaves the rest of the page's content as it was, so the block editor opens it with no warnings.

ACF Blocks need WordPress 6.9 or later and the Gutenberg mode on. On older versions the popup says "ACF Blocks are edited on the page from WordPress 6.9. Use the block editor." An ACF Block that keeps its fields in post meta (usePostMeta in its block.json) is edited like the page's own fields.

If the page's blocks changed after it loaded, nothing is saved: "This block moved or was removed since the page loaded. Reload the page."

Images

An Image field's popup changes the image it holds, uploaded or chosen from the Media Library, and its alt text. The alt text belongs to the image in the Media Library, as ACF reads it, so the popup says "Shared: the alternative text belongs to the image, wherever it is used." It works with the Image Array return format, when the theme prints the array's alt, and with Image ID, when WordPress prints the image with wp_get_attachment_image(). An Image field that returns only the Image URL puts no alt text on the page, so it has nothing to point at: edit it in More fields….

How a save works

A save goes through ACF, as the edit screen does:

  • ACF validates the value: required fields, character limits, a link's address, and your own acf/validate_value filters. Its message shows in the popup.
  • ACF saves it, so acf/save_post runs and your hooks on it see the change. A field in a row is saved under its own name, as the repeater saves it.
  • Formatted text is filtered for people without unfiltered_html, as in the backend.

Each save is one new revision of the page, and ACF's values are copied into that revision, so Restore This Revision brings them back. Terms and options pages have no revisions in WordPress.

More fields…

More fields… opens every ACF field group shown on the page's edit screen, under its title, slug, excerpt and featured image, rendered and checked by ACF itself. Repeaters, flexible content and every field type work there as in the backend. Save saves them all as one revision, and the page reloads.

Fields set to Not on the page are left out of it. Fields on a term or an options page aren't in it: their popup has Open in the backend instead.

Field modes

Each field has On the page (W-Pencil) in its settings, in ACF's field group editor: edit in the popup, in More fields… only, or not on the page. The setting is stored with the field, so it travels with local JSON. Field modes explains it.

Next in Site builders

Elementor.

Elementor and Elementor Pro: widgets' text, links and images on pages and in templates, saved the way Elementor's editor saves them.