Template Map
Template Map is a utility plugin designed to make the creation and management of navigation elements in your custom theme that much easier. It abstracts the need to hard code post IDs and the like from your global and…
Envisager une alternative
Template Map shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 5 years ago, and scores 23/100 on our health check.
- Petite base d'utilisateurs (plus de 10 installations actives)
- Très peu de critiques jusqu'à présent
- Pas de mise à jour dans 4 ans
- Uniquement testé jusqu'à WordPress 5,9 (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 supportTéléchargements quotidiens
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 Template Map stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| lien | >100 |
| modèle | >100 |
Adoption de version
Part de sites actifs par version.
About Template Map
À partir du Lisez-moi officiel · v1.0.1Description
Template Map is a utility plugin designed to make the creation and management of navigation elements in your custom theme that much easier. It abstracts the need to hard code post IDs and the like from your global and header navigation systems (if you choose to not use Menus) for instance.
For Example
Many times you may use something like the following to build your main site navigation:
<nav>
<ul>
<li>
<a href="<?php echo get_permalink( 83 ); ?>">About</a>
</li>
</ul>
</nav>
That works great during initial development, and continues to hold up when you migrate to production en masse for the first time. But what about when you’re making subsequent updates and the post IDs in your development environment are different than those in production? You could take the time to sync the databases each and every time, but that’s a bit overkill. Here’s where Template Map comes in to play:
<nav>
<ul>
<li>
<?php $about_page_id = TemplateMap()->get_id_from_template( 'template-about.php' ); ?>
<a href="<?php echo get_permalink( $about_page_id ); ?>">About</a>
</li>
</ul>
</nav>
Template Map allows you to dynamically retreive your desired post ID based on the Page Template you told it to use. Page Template filenames rarely (if ever) change, so it’s the core concept of Template Map’s implementation. Everything works backwards from here.
Naturally this philosophy assumes your Page Template is used only once, it’s important to keep that in mind. Modern client sites often use unique Page Templates for the ‘parent’ pages of each site section.
Current Site Section
Template Map also makes it easier to determine whether the current page is within a site ‘section’ which is defined as a top level Page with a unique Page Template that has any number of child Pages and/or Custom Post Types within it. This is very useful when trying to set a ‘current’ state in your navigation, for example:
<nav>
<ul>
<li class="<?php if( TemplateMap()->maybe_in_section( 'template-about.php' ) ) : ?> current<?php endif; ?>">
<?php $about_page_id = TemplateMap()->get_id_from_template( 'template-about.php' ); ?>
<a href="<?php echo get_permalink( $about_page_id ); ?>">About</a>
</li>
</ul>
</nav>
Based on the same principle you can use this utility method to properly orient yourself when outputting conditional classes contingent on the current page being within a ‘secton’ on your site.
Installation
- Téléchargez
templatemapdans le répertoire/wp-content/plugins/ - Activez le plugin via le menu « Plugins » dans WordPress
- Replace calls to
get_permalink( 83 )withget_permalink( TemplateMap()->get_id_from_template( 'template-about.php' ) )wheretemplate-about.phpis the Page you wish to link
Journal de modifications
1.0.1
- When using maybe_in_section you can pass a 2nd parameter to force a parent ID
1.0
- Communiqué initial
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.
Best Template Map alternatives
All link plugins →FAQ
Template Map: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Template Map free?
Yes. Template Map is free to download and use from the official WordPress.org plugin directory.
Is Template Map safe to use in 2026?
Template Map shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites and was last updated 5 years ago, and scores 23/100 on our health check.
How many websites use Template Map?
Template Map is active on 10+ WordPress websites and has been downloaded 2,129 times since it launched in July 2014. It was downloaded 41 times in the last 30 days.
Does Template Map work with WordPress 7.1?
Template Map is officially tested up to WordPress 5.9.0, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Template Map last updated?
The latest version, 1.0.1, was released on February 10, 2022 (5 years ago).
Who makes Template Map?
Template Map is developed and maintained by Jon Christopher.
What are the best alternatives to Template Map?
The most popular alternatives to Template Map are Custom Post Type Permalinks (200K+ installs), Page Links To (100K+ installs) and Make Column Clickable for E… (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
