Linux 软件免费装

Plugin Name

开发者 gandhirk
更新时间 2016年12月13日 02:07
捐献地址: 去捐款
PHP版本: 3.0 及以上
WordPress版本: 4.7
版权: GPLv2 or later
版权网址: 版权信息

标签

custom template post template custom template for post single post templates templates for custom post types custom post type template wordpress custom post template

下载

1.0.1 1.0 1.0.2 1.0.3 1.0.4 1.0.5

详情介绍:

This plugin will allow you to assign page template to any custom post type or posts same as Page. The template will be used to display single post in front end. You can create template same as page template for wordpress pages. You need to select post types where you want to apply template from settings page of this plugin from admin side. To create template file you need to create .php file in current theme's directory with Template Name: your template name in comment at first line of your file. Ex. <?php / Template name: my first template / ?> You can create template files in subdirectory of current theme folder also. Now WordPress 4.7 has introduced this functionality in core.

安装:

  1. Upload the plugin files to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Settings->Templates for CP screen to configure the plugin
  4. Select post types for which you want to assign page templates
  5. You can create template file same as for page with Template name in comment of template file
  6. Choose template from metabox for custom post types you have selected in plugin setting screen

屏幕截图:

  • Setting screen
  • Template file example
  • Assign template
  • Display in front

更新日志:

1.0.5 1.0.4 1.0.3 1.0