Det här tillägget har inte testats med någon av de 3 senaste huvudversionerna av WordPress. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem när det används tillsammans med nyare versioner av WordPress.

WP Custom Post Template

Beskrivning

This plugin lets you add the custom post templates in your WordPress custom post type. You can easily apply your custom post template in custom post type single page like page template.

The templates are defined similarly to page templates, and will replace single.php for the specified post.

Admin can select multiple custom post type where they want to apply custom post template.(i.e. you can choose a template which is not single.php).

Easily managed through the admin area.

Admin can use default setting for the custom post type plugin by simply clicking on default setting button.

First note: Page templates use ”Template Name:”, whereas custom post templates use ”WP Post Template:”.

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.

Features

  • Select custom post type where you need to show the post template.

  • Select default setting to show post template in your theme default post type.

  • By default post template show in wordpress default post type : ’post’.

Skärmdumpar

  • screenshot-1.jpg
  • screenshot-2.jpg
  • screenshot-3.jpg
  • screenshot-4.jpg

Installation

Install

  1. Login into your WordPress admin panel
  2. Navigate to Plugins => Add New
  3. Click Upload
  4. Click Choose File and select the wp-custom-post-template.zip.
  5. Click Install Now.
  6. Activate the plugin through the ’Plugins’ menu in WordPress.
  7. Go to Dashboard => WP Post Template and set your general setting.
  8. To create new custom Post Template you need to put the new file in the same directory/folder as your index.php and just need to add comment (WP Post Template: Your New Post Template Name) in your new post template file same as you do for page template.

Uninstall

  1. Deactivate WP Post Template in the ’Plugins’ menu in WordPress.
  2. After Deactivation a ’Delete’ link appears below the plugin name, follow the link and confim with ’Yes, Delete these files’.
  3. This will delete all the plugin files from the server as well as erasing all options the plugin has stored in the database.

Vanliga frågor

Write an email us on : info@dotsquares.com

Installation Instructions

Install

  1. Login into your WordPress admin panel
  2. Navigate to Plugins => Add New
  3. Click Upload
  4. Click Choose File and select the wp-custom-post-template.zip.
  5. Click Install Now.
  6. Activate the plugin through the ’Plugins’ menu in WordPress.
  7. Go to Dashboard => WP Post Template and set your general setting.
  8. To create new custom Post Template you need to put the new file in the same directory/folder as your index.php and just need to add comment (WP Post Template: Your New Post Template Name) in your new post template file same as you do for page template.

Uninstall

  1. Deactivate WP Post Template in the ’Plugins’ menu in WordPress.
  2. After Deactivation a ’Delete’ link appears below the plugin name, follow the link and confim with ’Yes, Delete these files’.
  3. This will delete all the plugin files from the server as well as erasing all options the plugin has stored in the database.

Recensioner

13 september 2018
If you've ever successfully made a page template in Wordpress, you'll be able to do the same thing for posts using this plugin. Excellent.
9 december 2016
I organise my templates in a specific directory and this doesn't work with this plugin, as you require me to have them in the top level theme directory. Second point, you add clutter to the admin menus, by having the plugin's own menu. You should have put this in the settings area, as you only have 2 settings...
Läs alla 28 betyg

Bidragsgivare och utvecklare

”WP Custom Post Template” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

Översätt ”WP Custom Post Template” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

1.1 – 2015-07-18

  • Updated according to new wp version functions.

1.0

  • A intial version.