🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
Custom Post Template icon
Peut-être abandonné Testé jusqu'à 3.4.2 #20 in post

Custom Post Template

Provides a drop-down to select different templates for posts from the post edit screen. The templates are defined similarly to page templates, and will replace single.php for the specified post. This plugin will NOT…

Installations actives9K+Niveau 5K+
Téléchargements · 30D737▲ +18.1% vs prev. 30d
Évaluation4.8/543 avis
Score de santé45/100Juste
Téléchargements de tous les temps250.4KDepuis novembre 2008
Support résolu—Aucun fil de discussion récent
A besoin deWP 3.4Php tout
Téléchargements · 7j196▲ +6.5% week over week
Notre verdict

Utiliser avec prudence

Custom Post Template works, but test it on a staging site before relying on it in 2026. It runs on 9K+ sites, is rated 4.8/5 and was last updated 9 years ago, and scores 45/100 on our health check.

  • Loved by users — 4.8/5 from 43 reviews
  • Momentum — downloads up 18.1% vs the previous 30 days
  • Pas de mise à jour dans 9 ans
  • Uniquement testé jusqu'à WordPress3,4 (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

102030Sep 1Oct 15Nov 29
Hier24
Moyenne quotidienne (1 ans)13
Jour de pointe4125 Octobre 2026
12 Derniers mois4.6K

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 Custom Post Template stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
poster >100 10,000 Meilleurs plugins de publication →
modèle >100 10,000 Meilleurs plugins de modèles →
thème >100 10,000 Meilleurs plugins de thèmes →

Adoption de version

Part de sites actifs par version.

  • 1.598.5%
  • Autres1.6%

Répartition des notes

★★★★★★★★★★ 4.8 from 43 reviews

  • 5★90.7%
  • 4★4.7%
  • 3★0.00%
  • 2★2.3%
  • 1★2.3%

About Custom Post Template

À partir du Lisez-moi officiel · v1.5

Description

Provides a drop-down to select different templates for posts from the post edit screen. The templates are defined similarly to page templates, and will replace single.php for the specified post. This plugin will NOT switch the templates for the different posts in a listing page, e.g. a date or category archive, it will only affect the template used for single posts (i.e. you can choose a template which is not single.php).

Post templates, as far as this plugin is concerned, are configured similarly to page templates in that they have a particular style of PHP comment at the top of them. Each post template must contain the following, or similar, at the top:

<?php
/*
Template Name Posts: Snarfer
*/
?>

First note: Page templates use “Template Name:“, whereas post templates use “Template Name Posts:“.

Second note: You must have the custom post template files in your theme in the same directory/folder as your index.php template file, not in a sub-directory/sub-folder.

Développeurs

If you want to implement the custom post templates on a custom post type, you can use the cpt_post_types filter, here’s an example below of adding the custom post template selector and metabox to the “Movie” and “Actor” custom post types. This code can be added to a plugin or to the functions.php file in your theme.

/**
 * Hooks the WP cpt_post_types filter 
 *
 * @param array $post_types An array of post type names that the templates be used by
 * @return array The array of post type names that the templates be used by
 **/
function my_cpt_post_types( $post_types ) {
    $post_types[] = 'movie';
    $post_types[] = 'actor';
    return $post_types;
}
add_filter( 'cpt_post_types', 'my_cpt_post_types' );

Installation

Le plugin est simple à installer :

  1. Download the plugin, it will arrive as a zip file
  2. Unzip it
  3. Upload custom-post-template directory to your WordPress Plugin directory
  4. Accédez à la page de gestion des plugins et activez le plugin
  5. Upload your post template files (see the Description for details on configuring these), and choose them through the new menu
  6. Give yourself a pat on the back

Journal de modifications

This upgrade REQUIRES WordPress version 3.4 and WILL NOT WORK WITHOUT IT.

v1.5 2012/06/14

This upgrade REQUIRES WordPress version 3.4 and WILL NOT WORK WITHOUT IT.

  • Updated for compatibility with 3.4, takes advantage of the new WP_Theme class and methods and the get_file_data function.

v1.4 2011/08/14

  • Added a filter, cpt_post_types, so people can choose which post types this plugin shows the UI for
  • Linked to WP.org, not my site, for documentation (quicker to load)

v1.3 2010/06/17

Dear Non-English Custom Post Template Users,

This release includes the facility for Custom Post Template to be translated into languages other than English. Please contact me if you want to translate Custom Post Template into your language.

Sorry it took so long.

  • ENHANCEMENT: Now works with child themes, hat-tip Kathy
  • LOCALISATION: Now ready for localisation!

v1.2 2010/04/28

  • ENHANCEMENT: Now sporting a conditional is_post_template function/template tag which is functionally equivalent to the core WordPress is_page_template conditional function/template tag
  • ENHANCEMENT: If the theme uses the core WordPress (body_class)[https://codex.wordpress.org/Template_Tags/body_class] template tag, then you will have two new classes added: “post-template” and “post-template-my-post-template-php” (where your post template file is named “my-post-template.php”).

v1.1 2010/01/27

  • IDIOTFIX: Managed to revert to an old version somehow, this version should fix that.

v1 2010/01/15 (released 2010/01/26)

  • BUGFIX: Theme templates now come with a complete filepath, so no need to add WP_CONTENT_DIR constant to the beginning.
  • ENHANCEMENT: Metabox now shows up on the side, under the publish box… where you’d expect.
  • Plugin initially produced on behalf of Words & Pictures.

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 Custom Post Template alternatives

All post plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Poste duplicateur Poste duplicateur Crée des fonctionnalités pour dupliquer tous les types de publications, y compris les taxonomies et les… par métaphores 200K+ ★★★★★★★★★★ 4.8 (80) Il y a 2 semaines 95
2 Scripts d'en-tête et de pied de page Scripts d'en-tête et de pied de page Le plugin d'en-tête et de pied de page vous permet d'ajouter des scripts aux sites WordPress et juste… par Anand Kumar 200K+ ★★★★★★★★★★ 4.6 (58) il y a 10 mois 51
3 Commutateur de type de poste Commutateur de type de poste Un moyen simple de modifier le type d'un message dans WordPress de John James Jacoby 200K+ ★★★★★★★★★★ 4.8 (255) Il y a 2 mois 76
4 Extrait avancé Extrait avancé Control the appearance of WordPress post excerpts by WPKube 80K+ ★★★★★★★★★★ 4.3 (101) il y a 4 mois 63
5 Ajouter à partir du serveur Ajouter à partir du serveur Add From Server est conçu pour aider à soulager la douleur des mauvais hôtes Web, vous permettant de télécharger… par Dion Hulse 50K+ ★★★★★★★★★★ 4.6 (239) Il y a 6 ans 46
6 Revision Control Revision Control Revision Control allows finer control over the Post Revision system included with WordPress par Dion Hulse 40K+ ★★★★★★★★★★ 4.4 (36) il y a 9 ans 45
7 Révéler les identifiants Révéler les identifiants Ce que fait ce plugin est de révéler la plupart des ID supprimés sur les pages d'administration, comme c'était le cas dans les versions… par wpseek 40K+ ★★★★★★★★★★ 5 (61) il y a 4 mois 81
8 Themify Portfolio Post Themify Portfolio Post Add a simple Portfolio post type to your site. par themifyme 30K+ ★★★★★★★★★★ 5 (1) 3 semaines plus tôt 81
9 L'interface utilisateur de l'administrateur WP Personnaliser L'interface utilisateur de l'administrateur WP Personnaliser Personnalisez l'interface utilisateur de l'écran de gestion. par gqevu6bsiz 30K+ ★★★★★★★★★★ 4.6 (59) Il y a 2 ans 46
10 WP-posttings WP-posttings Ajoute un système de notation Ajax pour le contenu de votre site WordPress. de Lester Chan 20K+ ★★★★★★★★★★ 4.4 (178) Il y a 3 mois 83

FAQ

Custom Post Template: quick answers

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

Source : WordPress.org

Is Custom Post Template free?

Yes. Custom Post Template is free to download and use from the official WordPress.org plugin directory.

Is Custom Post Template safe to use in 2026?

Custom Post Template works, but test it on a staging site before relying on it in 2026. It runs on 9K+ sites, is rated 4.8/5 and was last updated 9 years ago, and scores 45/100 on our health check.

How many websites use Custom Post Template?

Custom Post Template is active on 9K+ WordPress websites and has been downloaded 250,375 times since it launched in November 2008. It was downloaded 737 times in the last 30 days.

Does Custom Post Template work with WordPress 7.1?

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

When was Custom Post Template last updated?

The latest version, 1.5, was released on November 28, 2017 (9 years ago).

Who makes Custom Post Template?

Custom Post Template is developed and maintained by Simon Wheatley.

What are the best alternatives to Custom Post Template?

The most popular alternatives to Custom Post Template are Post Duplicator (200K+ installs), Header and Footer Scripts (200K+ installs) and Post Type Switcher (200K+ 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