Custom Post Templates
ExtensionProvides a drop-down to select different templates for posts from the post edit screen. The templates replace single.php for the specified post.
- 0 étoile
- 0 personne le suit
- 0 téléchargement
- Licence non déclarée
-
1.5 Dernière
Lisez-moi
LicenceCustom Post Templates
Provides a drop-down to select different templates for posts from the post edit screen. The templates replace single.php for the specified post.
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:
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.
Installation
The plugin is simple to install:
- Download the plugin, it will arrive as a zip file
- Unzip it
- Upload
custom-post-templatedirectory to your WordPress Plugin directory - Go to the plugin management page and enable the plugin
- Upload your post template files (see the Description for details on configuring these), and choose them through the new menu
- Give yourself a pat on the back
Faq
I get an error like this: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /web/wp-content/plugins/custom-post-template/custom-post-templates.php
This is because your server is running PHP4. Please see "Other Notes > PHP4" for more information.
Upgrade Notice
1.5
This upgrade REQUIRES WordPress version 3.4 and WILL NOT WORK WITHOUT IT.
Installer
composer require meteorgpl-plugin/custom-post-template
Les vérifications de licence de l’éditeur sont intactes : activez l’extension dans WordPress avec une clé de licence achetée auprès de l’éditeur.
Licence
L’extension ne déclare aucune licence. Le code est redistribué sous la licence que l’éditeur a déclarée dans les en-têtes de l’extension. Profil de licence : undeclared.
Les illustrations, polices, médias et documents susceptibles d’être soumis à une licence distincte ne sont pas redistribués ; la page sur les licences explique ce qui est remplacé ou supprimé, et l’onglet Sécurité le détaille par version. Le droit au support et aux mises à jour vient avec la licence que vous achetez auprès de l’éditeur.