內容簡介
此外掛可讓您在 WordPress 自訂文章類型中新增自訂文章模板,並可在自訂文章類型的單一頁面中輕鬆套用自訂文章模板,類似於頁面模板的方式。
模板的定義方式與頁面模板相似,將替換指定文章的 single.php。
管理員可以選擇多個自訂文章類型,套用自訂文章模板。(例如:您可以選擇一個不是 single.php 的模板)。
此外掛可在管理區輕鬆管理。
管理員可透過按下預設設定按鈕,使用自訂文章類型外掛的預設設定。
第一注意事項:頁面模板使用「範本名稱:」,而自訂文章模板使用「WP Post Template:」。
第二注意事項:自訂文章模板檔案必須與 index.php 範本檔案置於同一目錄/資料夾中,而非子目錄/子資料夾中。
功能
選擇需要顯示文章模板的自訂文章類型。
選擇預設設定,將文章模板顯示於您的主題預設文章類型中。
預設文章模板顯示於 WordPress 預設文章類型:「文章」。
外掛標籤
開發者團隊
原文外掛簡介
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’.
