Timber

Timber themes work as they are.

One pencil for every WordPress page, Twig included. Timber asks WordPress and ACF for what it prints, so the pencils just appear. Nothing to set up, learn or break.

No Twig filter or function to add.

What gets a pencil

Your Twig, unchanged.

A value gets its pencil when it passes through WordPress's or ACF's own functions on its way to the page. Timber's do.

Edit Heading

Home › Statement › Heading

32/80

The section's title. Keep it short.

CancelSave

How a save goes back

Saved through ACF and WordPress.

Timber only prints. A save goes back through ACF or WordPress's menus, as it does on a PHP theme.

  • ACF checks it

    Required fields, character limits and your own acf/validate_value filters, and acf/save_post runs as in the backend.

  • One revision

    Each save is one new revision of the page, ACF's values included, with a note that says where it was edited.

  • Two people, one field

    If someone saved first, nobody is overwritten: you see both versions and choose.

  • Undo is free

    The "Changes saved" message has Undo, or press Alt+Shift+Z. It puts back what the save replaced and never uses a credit.

  • Visitors notice nothing

    Visitors load no W-Pencil code, and your editors' own pages are never cached. After a save, a caching plugin clears the page as it does after a save in the editor.

What stays in the backend

What to watch in your templates.

Markers are characters in the string, as in any theme. Three things to know.

  • Raw values have no pencil. A value read without ACF's formatting, or straight from the database, isn't marked.

  • Compute attributes from the plain value. An id, a data- attribute or a length made from a marked value sees the markers too. W-Pencil already cleans slugs, URLs, trimmed words and the page's head.

  • Words in a template stay there. Text written into a .twig file isn't stored anywhere W-Pencil could save it.

Timber questions.

Not here? The theme docs go further.

Do I need a Twig filter or function?

No. There is nothing to call: values Timber gets from WordPress and ACF are marked on the way, as they are in a PHP theme.

What about values my theme computes?

Compute ids, attributes and lengths from the plain value, which no filter marks, such as get_field( 'title', false, false ). The theme docs show how.

Do visitors see anything different?

No. Markers are only added for people who may edit, and visitors load no W-Pencil code.

Pricing

Pay for edits, in pencils.

One credit is one save that changes content. Undo, Restore, uploads and saves that change nothing are free, and so are your local dev sites.

See pricing and the packs calculator

Install in three steps

Pick up the pencil.

The plugin is free to download and install. Your first 100 edits every month are free too, for good.

  1. 1Download the plugin

    Download w-pencil.zip and upload it at Plugins › Add Plugin.

  2. 2Or install it with WP-CLI

    wp plugin install https://w-pencil.cloud/download/w-pencil.zip --activate
  3. 3Connect the site

    Click Connect W-Pencil in the banner WordPress shows admins. That's it.