🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
TwigPress icon
Möglicherweise aufgegeben Tested up to 4.1.42 #73 in templates

TwigPress

This plugin provides a simple way for you to use the Twig templating system within WordPress themes.

Aktive Installationen20+10+ Stufe
Downloads · 30d52▲ +52.9% vs prev. 30d
Wertung5/52 Bewertungen
Gesundheits-Score31/100In Gefahr
Downloads aller Zeiten4.1KSince May 2013
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 4.1PHP ANY
Downloads · 7d11▼ -38.9% week over week
Unser Urteil

Betrachten Sie eine Alternative

TwigPress shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites, is rated 5/5 and was last updated 12 years ago, and scores 31/100 on our health check.

  • Kleine Benutzerbasis (20+ aktive Installationen)
  • Bisher sehr wenige Bewertungen
  • Kein Update in 11 Jahren
  • Only tested up to WordPress 4.1 (latest is 7.1)

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

135Sep 1Oct 15Nov 29
Gestern2
Täglicher Durchschnitt (1 Jahr)1
Spitzentag8Mar 24, 2026
Letzte 12 Monate427

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where TwigPress stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
Vorlagen >100 10,000 Beste Vorlagen-Plugins →
themes >100 10,000 Best themes plugins →
twig #83 89 Best twig plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 1.1100.0%

Bewertungsaufschlüsselung

★★★★★★★★★★ 5 from 2 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About TwigPress

From the official readme · v1.1.2

Beschreibung

This plugin provides a simple way for you to use the Twig templating engine with WordPress themes. A problem with WordPress themes is that it is very easy to create templates that are a mess of PHP and HTML. This isn’t good for working with neither does it provide a separation of concerns. The Twig templating engine is a great engine that allows you to separate out getting & manipulating your data and rendering it out. You create your themes in the same way as before, only you render a template instead of using PHP within your page structure.

The Installation section provides the steps to using this plugin with your theme.

In the Other Notes section, there is an easy reference for the different functions/filters and what they can be used for.

For Twig, the Twig documentation is the best resource I can offer. It is extremely well documented.

Functions and Filters

Functions

twigpress_render_twig_template($vals = array(), $template = false, $echo = true)

Calling this function renders a $template with the values passed in $vals. You can also choose a specific template to render and whether you would like to echo the template or simply return it.

There is no need to explicitly set the $template name. If this is left to the default, the plugin will look for a template with the same name as the PHP file being rendered (with a ‘.twig’ extension). For example, if front-page.php is being rendered the plugin will attempt to find front-page.twig.

If you wish to simply return the rendered template, set $echo to false.

twigpress_get_the_content()

Use this function to get the content for the post you are dealing with. If you use get_the_content, WordPress returns the unformatted content and the the_content filter is not applied. twigpress_get_the_content() takes care of both of these tasks.

Filters

twigpress_twig_site_variables

This filter is applied when the plugin is instantiated, on the ‘init’ action, and allows you to alter the array of variables that are passed to the Twig environment when it is first created. As such, these variables are available to all templates. This filter is best suited for site-wide information. For post-specific variables, use the twigpress_twig_post_template_vars filter.

Defaults:

'site' => array(
    'lang_attributes' => get_bloginfo('language'),
    'charset' => get_bloginfo('charset'),
    'url' => get_bloginfo('url'),
    'stylesheet_directory' => get_stylesheet_directory_uri(),
    'title' => get_bloginfo('name'),
    'description' => get_bloginfo('description')
)

In templates these would be accessible through, for example, {{ site.stylesheet_directory }}.

twigpress_twig_global_functions

There will be times when you need to use PHP functions in your templates, and there is no way to capture their content to pass to the template when it is rendered. This filter gives you access to the array of functions that are added to the Twig environment, making them available for calling in your templates.

Defaults: wp_head(), wp_footer(), wp_title(), body_class(), wp_nav_menu()

twigpress_twig_post_template_vars

This filter is applied to your passed array of $vars immediately before the template is rendered. This filter is ideal for when you have a set of default variables you wish to include in every template, but are related to posts not the entire site.

Installation

  1. Download the plugin from WordPress, either directly or through the plugins admin screen
    – If you download the files directly, upload them to your /wp-content/plugins/ directory
  2. Place the Twig files in your wp-content directory, Autoloader.php should reside at wp-content/Twig/Autoloader.php
  3. Create a ‘twigs’ directory inside your theme folder, place your Twig templates in here
  4. Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress
  5. Use the twigpress_render_twig_template() function in your PHP files to render templates

Änderungsprotokoll

1.1.2

  • [Added] If WP_DEBUG is enabled, turn on debugging in the Twig environment

1.1.1

  • Strict variables are no longer enforced

1.1.0

  • [Added] TwigPress now sets up a template cache in your theme folder
  • [Added] TwigPress sets the Twig core to recompile templates when the source code changes
  • [Added] TwigPress sets the Twig core to enforce strict variables, which stops silent failure

1.0.1

  • Minor changes to codebase

1.0.0

  • Erste Freigabe

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best TwigPress alternatives

All templates plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Startervorlagen: KI-gestützte Website-Vorlagen für Elementor & Gutenberg Starter Templates: AI-Powered Website Templates for Element… 300+ free WordPress website templates, page templates & block patterns. A starter sites… durch Brainstorming-Kraft 1M+ ★★★★★★★★★★ 4.9 (4.8K) Vor 5 Tagen 93
2 verlängern verlängern Die besten WordPress-Vorlagen, Muster und Layoutbibliotheken mit mehr als 1.000 Designs für… durch verlängern 500K+ ★★★★★★★★★★ 4.7 (10) Vor 3 tagen 76
3 Template Kit – Import Template Kit – Import Use this plugin to import Template Kits to WordPress by envato 400K+ ★★★★★★★★★★ 3.4 (16) Vor 2 Monaten 60
4 Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! Templately Templately is an AI-powered WordPress templates cloud for Elementor and Gutenberg that… von wpdeveloper 300K+ ★★★★★★★★★★ 5 (384) Vor 4 Tagen 93
5 Jeg Kit for Elementor – Powerful Addons for Elementor, Widgets & Templates for WordPress Jeg Kit for Elementor Extend Elementor with 68+ widgets, 114 prebuilt demos, Mega Menu Builder, Theme Builder… by jegtheme 300K+ ★★★★★★★★★★ 3.8 (79) Vor 2 Tagen 91
6 Kadence-Starter-Vorlagen — Vorgefertigte Website-Vorlagen Kadence-Starter-Vorlagen — Vorgefertigte Website-Vorlagen Erstellen Sie mit Leichtigkeit eine schöne "Leistungsoptimierte" Website. von Nexcess 200K+ ★★★★★★★★★★ 4.3 (19) Vor 4 Monaten 58
7 Starterseiten & Vorlagen von Neve Starterseiten & Vorlagen von Neve Greifen Sie auf 100+ Gutenberg Vorlagen und gebrauchsfertige Startseiten für WordPress zu. Alle Designs… von Themeisle 100K+ ★★★★★★★★★★ 4.7 (77) Vor 2 Wochen 91
8 SKT Templates – 100% Free Templates for Elementor & Gutenberg SKT Templates Import professionally designed Elementor and Gutenberg website templates with one click… by Sonal S Sinha 20K+ ★★★★★★★★★★ 5 (6) Vor 1 Monat 89
9 Ibtana – WordPress Website Builder Ibtana – WordPress Website Builder Build your dream WordPress website with Ibtana, a powerful website builder with… by VW THEMES 10K+ ★★★★★★★★★★ 4.3 (30) Vor 3 Wochen 64
10 Responsive Starter Templates – Elementor Templates & Starter Sites Responsive Starter Templates Import free and pro Gutenberg and Elementor Templates for the Responsive WordPress theme. by CyberChimps 10K+ ★★★★★★★★★★ 4.5 (39) Vor 3 Wochen 88

Fragen und Antworten

TwigPress: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is TwigPress free?

Yes. TwigPress is free to download and use from the official WordPress.org plugin directory.

Is TwigPress safe to use in 2026?

TwigPress shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites, is rated 5/5 and was last updated 12 years ago, and scores 31/100 on our health check.

How many websites use TwigPress?

TwigPress is active on 20+ WordPress websites and has been downloaded 4,140 times since it launched in May 2013. It was downloaded 52 times in the last 30 days.

Does TwigPress work with WordPress 7.1?

TwigPress is officially tested up to WordPress 4.1.42, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was TwigPress last updated?

The latest version, 1.1.2, was released on February 22, 2015 (12 years ago).

Who makes TwigPress?

TwigPress is developed and maintained by MikeShaw217.

What are the best alternatives to TwigPress?

The most popular alternatives to TwigPress are Starter Templates: AI-Power… (1M+ installs), Extendify (500K+ installs) and Template Kit – Import (400K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen