Title: Editor for Timber
Author: dweipert
Published: <strong>Oktubre 29, 2020</strong>
Last modified: Disyembre 16, 2020

---

Search plugins

![](https://ps.w.org/editor-for-timber/assets/banner-772x250.jpg?rev=2411861)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/editor-for-timber/assets/icon-128x128.png?rev=2411861)

# Editor for Timber

 By [dweipert](https://profiles.wordpress.org/drogueronin/)

[Download](https://downloads.wordpress.org/plugin/editor-for-timber.1.0.2.zip)

 * [Details](https://ceb.wordpress.org/plugins/editor-for-timber/#description)
 * [Reviews](https://ceb.wordpress.org/plugins/editor-for-timber/#reviews)
 * [Development](https://ceb.wordpress.org/plugins/editor-for-timber/#developers)

 [Support](https://wordpress.org/support/plugin/editor-for-timber/)

## Description

### Features

 * adds a metabox to configurable Post-Types to create and edit Twig templates
 * adds Twig support to the WP Theme & Plugin editors
    - you can even customize the CodeMirror theme

### Plugin Dependencies

 * https://wordpress.org/plugins/timber-library/
 * https://wordpress.org/plugins/classic-editor/

### How to use the MetaBox Feature

The plugin uses the path defined in `Timber::$locations` as the templates path or
falls back to the uploads folder if none is provided.

Either adjust your `Timber::render('page.twig', $context)`-functions like this:

    ```
    $filenames = [TimberEditor::getTemplateFilename(), 'page.twig'];
    Timber::render($filenames, $context);
    ```

like this

    ```
    TimberEditor::render('page.twig', $context);
    # 'page.twig' serves as a fallback if the current posts's template doesn't exist
    ```

or like this

    ```
    TimberEditor::renderPost('page.twig', $context);
    # renderPost() automatically adds ['post' => new Timber\Post()] to the $context
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Editor for Timber” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ dweipert ](https://profiles.wordpress.org/drogueronin/)

“Editor for Timber” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber/contributors)
for their contributions.

[Translate “Editor for Timber” into your language.](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/editor-for-timber/),
check out the [SVN repository](https://plugins.svn.wordpress.org/editor-for-timber/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/editor-for-timber/)
by [RSS](https://plugins.trac.wordpress.org/log/editor-for-timber/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.2**
 *  Last updated **5 tuig ago**
 *  Active installations **50+**
 *  WordPress version ** 5.5 or higher **
 *  Tested up to **5.5.18**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/editor-for-timber/) and [German](https://de.wordpress.org/plugins/editor-for-timber/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber)
 * Tags
 * [templates](https://ceb.wordpress.org/plugins/tags/templates/)[Timber](https://ceb.wordpress.org/plugins/tags/timber/)
   [twig](https://ceb.wordpress.org/plugins/tags/twig/)
 *  [Advanced View](https://ceb.wordpress.org/plugins/editor-for-timber/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/editor-for-timber/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/editor-for-timber/reviews/)

## Contributors

 *   [ dweipert ](https://profiles.wordpress.org/drogueronin/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/editor-for-timber/)