WP Custom Post Template
开发者 |
dswpsupport
|
更新时间 |
2016年12月27日 13:58 |
PHP版本: |
3.0 及以上 |
WordPress版本: |
4.7 |
版权: |
GPLv2 or later |
详情介绍:
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.
安装:
Install
- Login into your WordPress admin panel
- Navigate to Plugins => Add New
- Click Upload
- Click Choose File and select the wp-custom-post-template.zip.
- Click Install Now.
- Activate the plugin through the 'Plugins' menu in WordPress.
- Go to Dashboard => WP Post Template and set your general setting.
- 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
- Deactivate WP Post Template in the 'Plugins' menu in Wordpress.
- After Deactivation a 'Delete' link appears below the plugin name, follow the link and confim with 'Yes, Delete these files'.
- This will delete all the plugin files from the server as well as erasing all options the plugin has stored in the database.
屏幕截图:
更新日志:
1.1 - 2015-07-18
- Updated according to new wp version functions.
1.0