
內容簡介
選擇文章和自訂文章類型的範本,提供下拉式清單以在文章編輯畫面中選擇不同的文章和自訂文章類型的範本。所選擇的範本將取代指定文章的single.php。您可以使用頁面和自訂範本。
在您的範本檔案中使用簡單的範本名稱。
使用頁面範本:
<?php
/*
Template Name:您的範本名稱
*/
?>
使用您的自訂範本:
<?php
/*
Post Template Name:您的範本名稱
*/
?>
使用方式
首先啟用插件。
在「文章範本」管理選單中,允許為文章或自訂文章選擇器選擇文章範本。
然後在文章編輯畫面中選擇範本。
文章範本選擇的最低要求
WordPress 4.1+
PHP 5.x
MySQL 5.x
外掛標籤
開發者團隊
原文外掛簡介
Select Templates For Posts and Custom Post Types. It provides a drop-down to select different templates for posts and custom post types in post edit screen. Selected templates will override single.php for specified post. You can use both page and custom templates.
Use simple template name in your template files.
Use Page Templates:
Use Your Custom Templates:
How to use
First Activate Plugin.
From Post Template admin menu , allow post template selector for post or custom post
Then select template from post edit screen.
Minimum requirements for Post Template Select
WordPress 4.1+
PHP 5.x
MySQL 5.x
