🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
TwigPress icon
Peut-être abandonné 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.

Installations actives20+10+ niveaux
Téléchargements · 30D52▲ +52.9% vs prev. 30d
Évaluation5/52 avis
Score de santé31/100En danger
Téléchargements de tous les temps4.1KDepuis mai 2013
Support résolu—Aucun fil de discussion récent
A besoin deWP 4.1Php tout
Téléchargements · 7j11▼ -38.9% week over week
Notre verdict

Envisager une 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.

  • Petite base d'utilisateurs (20+ installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 11 ans
  • Uniquement testé jusqu'à WordPress 4.1 (le dernier est de 7,1)

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

135Sep 1Oct 15Nov 29
Hier2
Moyenne quotidienne (1 ans)1
Jour de pointe824 mars 2026
12 Derniers mois427

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where TwigPress stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
modèles >100 10,000 Meilleurs plugins de modèles →
themes >100 10,000 Best themes plugins →
twig #83 89 Best twig plugins →

Adoption de version

Part de sites actifs par version.

  • 1.1100.0%

Répartition des notes

★★★★★ ★★★★★ 5 sur 2 avis

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

About TwigPress

À partir du Lisezmoi officiel · v1.1.2

Description

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.

Filtres

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. Activez le plugin via le menu « Plugins » dans WordPress
  5. Use the twigpress_render_twig_template() function in your PHP files to render templates

Journal de modifications

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

  • Communiqué initial

Journal des modifications complet sur WordPress.org →

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best TwigPress alternatives

All templates plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Modèles de démarrage : modèles de sites Web alimentés par l'IA pour Elementor & Gutenberg Starter Templates: AI-Powered Website Templates for Element… 300+ free WordPress website templates, page templates & block patterns. A starter sites… par la force du remue-méninges 1M+ ★★★★★★★★★★ 4.9 (4.8K) il y a 5 jours 93
2 S'étendre S'étendre Les meilleurs modèles, modèles et bibliothèques de mise en page WordPress avec plus de 1 000 conceptions conçues pour… par extension 500K+ ★★★★★★★★★★ 4.7 (10) il y a 4 jours 76
3 Kit de modèles – Importer Kit de modèles – Importer Utilisez ce plugin pour importer des modèles de kits sur WordPress par Envato 400K+ ★★★★★★★★★★ 3.4 (16) Il y a 2 mois 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… par WPDeveloper 300K+ ★★★★★★★★★★ 5 (384) il y a 4 jours 93
5 Kit Jeg pour Elementor – Addons puissants pour Elementor, widgets et modèles pour WordPress Kit de jeg pour Elementor Étendez Elementor avec plus de 68 widgets, 114 démos prédéfinies, un constructeur de menus méga, un constructeur de thèmes... par jegtheme 300K+ ★★★★★★★★★★ 3.8 (79) Il ya 3 jours 91
6 Modèles de démarrage Kadence — Modèles de sites Web préconçus Modèles de démarrage Kadence — Modèles de sites Web préconçus Créez facilement un magnifique site Web "Optimized Performance". par Nexcess 200K+ ★★★★★★★★★★ 4.3 (19) il y a 4 mois 58
7 Sites et modèles de démarrage par Neve Sites et modèles de démarrage par Neve Accédez à plus de 100 modèles Gutenberg et à des sites de démarrage prêts à l'emploi pour WordPress. Toutes les conceptions… par themeisle 100K+ ★★★★★★★★★★ 4.7 (77) Il y a 2 semaines 91
8 SKT Templates – 100% Free Templates for Elementor & Gutenberg SKT Templates Import professionally designed Elementor and Gutenberg website templates with one click… par sonal s sinha 20K+ ★★★★★★★★★★ 5 (6) il y a 1 mois 89
9 Ibtana – WordPress Constructeur de sites Web Ibtana – WordPress Constructeur de sites Web Construisez votre rêve WordPress Site Web avec iBTana, un puissant constructeur de sites Web avec… Par thèmes VW 10K+ ★★★★★★★★★★ 4.3 (30) 3 semaines plus tôt 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. par Cyberchimps 10K+ ★★★★★★★★★★ 4.5 (39) 3 semaines plus tôt 88

FAQ

TwigPress: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : 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).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir