🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
NP Twig: Front End for Custom Field & ACF icon
Peut-être abandonné Tested up to 5.7.22

NP Twig: Front End for Custom Field & ACF

NP Twig Front End for WordPress Custom Field and Advance Custom Fields. Renders data using a twig template. It supports both free ACF and ACF pro.

Installations actives<10Nouveau
Téléchargements · 30D188• +0.5% vs prev. 30d
Évaluation—0 avis
Score de santé21/100En danger
Téléchargements de tous les temps9.2KDepuis avril 2021
Support résolu—Aucun fil de discussion récent
A besoin deWP 5.0PHP 7.0+
Téléchargements · 7j35▼ -12,5% Semaine sur semaine
Notre verdict

Envisager une alternative

NP Twig: Front End for Custom F… shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 6 years ago, and scores 21/100 on our health check.

  • Petite base d'utilisateurs (<10 installations actives)
  • Très peu de critiques jusqu'à présent
  • Pas de mise à jour dans 5 ans
  • Uniquement testé jusqu'à WordPress 5,7 (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

3710Sep 5Oct 19Dec 3
Hier5
Moyenne quotidienne (1 ans)5
Jour de pointe147 Novembre 2026
12 Derniers mois1.8K

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 NP Twig: Front End for Cust… stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
ACF >100 1,916 Meilleurs plugins ACF →
Champs personnalisés >100 10,000 Meilleurs plugins de champs personnalisés →
afficher >100 10,000 Meilleurs plugins d'affichage →
Fron End #7 9 Best Fron End plugins →
Timber #28 34 Best Timber plugins →

About NP Twig: Front End for Custom Field & A…

À partir du Lisezmoi officiel · v1.0.5

Description

Arabic Version of this Article

Template requirements

  • Ensure installs of Timber plugin: https://wordpress.org/plugins/timber-library/
  • Then create a private post or page or of any post type
  • For custom post type template ensures that your template name looks like: tpl-{{post_type}}
  • or add a custom field to your post name it twig and store the template name inside it

Custom Fields and ACF

  • WordPress supports custom fields, and you could add them directly to your post,
  • and ACF plugin gives more power to the custom fields
  • Use the Advanced Custom Fields plugin to take full control of your WordPress edit screens & custom field data.
  • Read more about ACF on https://wordpress.org/plugins/advanced-custom-fields/

Template Syntax: a quick guide for WordPress Front End for Custom Field

Note: WordPress Classic Editor is preferred to edit templates

Les commentaires

  • Use {# comments #} for comments, and comments will not render to the user,

Variables output

Variables in templets are post title, post object, and custom fields. To output post title you can use {{ title }}. If your post has a custom field called price. We use {{ price }} to output the price. Use a dot (.) to access attributes of a variable (methods or properties of an object, or items of an array: {{ foo.bar }}

Conditional output

The if statement in Twig check if a variable has a value or an expression evaluates to true We can add conditions to display any text. Let’s say that we have a custom field named “agent” and want to display a text when the field agent contains a text. We can write

{% if agent %}
    We have an agent in your area
    Our agent: {{ agent }}
{% endif %}

another example; let’s say that we have a field named price. We want to display a text if the price is zero

{% if price == 0 %}
   <p>This product is free</p>
{% endif %}

Please note that we use the operator == to check the equality You can also test if an array is not empty:

{% if meanings %}
   <p>The array or repeater field **meaning** contains some values</p>
{% endif %}

Closing condition block

Always use {% endif %} to close the previous if condition, Read more about if keyword in twig

Repeater field and arrays

If our field or variable is an array or a repeater field we can loop over each item in a sequence using for keyword

The for statement code example

{% for m in meanings %}
   Meaning: {{ m.meaning }}
{% endfor %}

The for statement format

  • We use  {% for m in meanings %} to loop over an array or repeater field called meanings using m to mention for each row
  • Inside the loop starts the subfields or array items with the variable name **m.**
  • Always close the loop use {% endfor %}
  • Read more about the for keyword in twig

Important notes for templates code

  • In WordPress classic editor show source and ensure there are no tags inside the template code; ex {% <del><span></del> endfor <del></span></del> %}
  • For more details, see: https://twig.symfony.com/doc/2.x/

Power templating with only 4 keyword

Using if, endif, for and endfor allows to generate a powerful template; however, twig contains many other useful keywords to see other keyword and how to use them visit twig documentation

Short template example

<h2>Meaning of {{ title }}</h2>
{# This is a comment and will not render #}
{% for m in meanings %}
    {% if m.meaning %}
        Meaning: {{ row.meaning }}
    {% endif %}
    {% if m.example %}
        Example: {{ m.example }}
    {% endif %}
{% endfor %}

Output post data

We can access the post using the post keyword. to access any property of the post we put a dot (.)  and then we put the property name for example use post.content to access post content

{{ post.title }}
   
{{ post.content }}

read more about accessing post content on timber documents

Why templating engine and not a raw PHP programming language

  • More Simple; so templating is more readable, and very easy that allows users to learn quickly,
  • and Limit the allowed function to prevent bad mistakes,
  • and easy to edit using WordPress classic editor

About Twig templating engine

  • The twig template engine process templates data, and output a webpage.
  • and it is a flexible, fast, and secure template engine for PHP.
  • We use Twig a template language, and we allow users to modify the template design.
  • It is fast because Twig compiles templates into optimized PHP code.
  • Get flexible, so it allows the developer to define its own custom tags and filters.
  • Read more about Twig

Timber and Twig

  • Timber helps to include Twig in WordPress,
  • with Timber, you write your HTML using the Twig Template Engine separate from your PHP files,
  • and this cleans up your template code so, for example, and your Twig template can focus on the HTML and display.

License and use

This plugin is distributed in the hope that it will be useful, but without any warranty. See the GNU General Public License for more details. http://www.gnu.org/licenses/.

Pour les développeurs

Add custom data to fields

  • Edit the file user-functions.php
  • Create a function and name it get_fields_{{post_type}}
  • If your custom post type contains ‘-‘ replace it with ‘_’
  • I include a sample function in user-functions.php
  • Backup your functions, and keep in mind that the file user-function may be replaced on upgrade

Add custom data for each singular page

  • Edit the file user-functions.php
  • then create a function and name it np_content_singular
  • I include a sample function in user-functions.php
  • Backup your functions, and keep in mind that the file user-function may be replaced on upgrade

Installation

  1. Install Timber plugin
  2. Upload this plugin folder to the /wp-content/plugins/ directory, or install it through the WordPress plugins screen directly.
  3. Activez le plugin via l'écran "Plugins" dans WordPress
  4. and you will more benefit from our plugin if you could install
    Advanced Custom Fields

Journal de modifications

No special requirements for the upgrade.

1.0

  • Plugin initial release

Journal des modifications complet sur WordPress.org →

Captures d'écran

A screenshot of the template edit using WordPress classic editor.
A screenshot of the template edit using WordPress classic editor.
A screenshot of the post NP Twig setting
A screenshot of the post NP Twig setting

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 NP Twig: Front End for Custom… alternatives

Tous les plugins ACF →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Champs personnalisés avancés (ACF®) Champs personnalisés avancés (ACF®) ACF permet de personnaliser WordPress avec des champs puissants, professionnels et intuitifs. Fièrement… Par moteur WP 2M+ ★★★★★★★★★★ 4.5 (1.4K) Il y a 2 semaines 95
2 Analyse de contenu ACF pour Yoast SEO Analyse de contenu ACF pour Yoast SEO WordPress Le plugin qui ajoute le contenu de tous les champs ACF à l'analyse des scores Yoast SEO. par Yoast 100K+ ★★★★★★★★★★ 4.1 (35) Il y a 2 mois 73
3 Champs personnalisés avancés : étendu Champs personnalisés avancés : étendu Suite d'amélioration tout-en-un qui améliore WordPress et des champs personnalisés avancés. Par Konrad Chmielewski 100K+ ★★★★★★★★★★ 4.8 (132) Il y a 2 mois 76
4 Champs personnalisés avancés : champ Font Awesome Champs personnalisés avancés : champ Font Awesome Ajoute un nouveau champ « Font Awesome Icon » au plugin populaire Advanced Custom Fields. de Justin Kruit 90K+ ★★★★★★★★★★ 4.9 (36) il y a 1 semaine 96
5 Champ de galerie de photos ACF Champ de galerie de photos ACF Une extension légère d'un champ personnalisé avancé (ACF) qui ajoute un champ de galerie de photos à n'importe quel… de Navneil Naicker 50K+ ★★★★★★★★★★ 4 (29) il y a 11 mois 47
6 Add-on de champ de table pour ACF et SCF Add-on de champ de table pour ACF et SCF Un module complémentaire de champ de table pour les champs personnalisés avancés et le plugin de champs personnalisés sécurisés. de Johann Heyne 50K+ ★★★★★★★★★★ 4.9 (60) Il y a 2 jours 95
7 Importateur vraiment simple CSV Importateur vraiment simple CSV Alternative CSV Plug-in d'importateur. Simple et puissant, idéal pour les geeks. par Webの相談所 30K+ ★★★★★★★★★★ 4.9 (107) il y a 5 mois 80
8 Champs personnalisés avancés : module complémentaire Gravity Forms Champs personnalisés avancés : module complémentaire Gravity Forms Fournit un champ personnalisé avancé qui permet à un utilisateur WordPress de sélectionner un formulaire de gravité sous la forme… par dannyvanholten 30K+ ★★★★★★★★★★ 4.2 (14) Il y a 1 an 49
9 Champs de modification rapide d'ACF Champs de modification rapide d'ACF Activer les colonnes, les filtres, la modification rapide et la modification groupée pour les champs ACF dans les tables de liste WordPress par Podpirate 30K+ ★★★★★★★★★★ 4.5 (43) Il y a 2 ans 38
10 Image Aspect Ratio Crop Field for Advanced Custom Fields Image Aspect Ratio Crop Field for Advanced Custom Fields Champ ACF qui permet à l'utilisateur de recadrer l'image selon un rapport d'aspect ou une taille de pixel spécifique par joppuyo 20K+ ★★★★★★★★★★ 4.8 (26) Il y a 2 mois 74

FAQ

NP Twig: Front End for Custom Field…: quick answers

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

Source : WordPress.org

Is NP Twig: Front End for Custom F… free?

Yes. NP Twig: Front End for Custom F… is free to download and use from the official WordPress.org plugin directory.

Is NP Twig: Front End for Custom F… safe to use in 2026?

NP Twig: Front End for Custom F… shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 6 years ago, and scores 21/100 on our health check.

How many websites use NP Twig: Front End for Custom F…?

NP Twig: Front End for Custom F… is active on <10 WordPress websites and has been downloaded 9,168 times since it launched in April 2021. It was downloaded 188 times in the last 30 days.

Does NP Twig: Front End for Custom F… work with WordPress 7.1?

NP Twig: Front End for Custom F… is officially tested up to WordPress 5.7.22, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does NP Twig: Front End for Custom F… need?

NP Twig: Front End for Custom F… requires PHP 7.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was NP Twig: Front End for Custom F… last updated?

The latest version, 1.0.5, was released on June 4, 2021 (6 years ago).

Who makes NP Twig: Front End for Custom F…?

NP Twig: Front End for Custom F… is developed and maintained by NewPast.

What are the best alternatives to NP Twig: Front End for Custom F…?

The most popular alternatives to NP Twig: Front End for Custom F… are Advanced Custom Fields (ACF… (2M+ installs), ACF Content Analysis for Yo… (100K+ installs) and Advanced Custom Fields: Ext… (100K+ 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