前言介紹
- 這款 WordPress 外掛「WP Custom Post Template Redux」是 2016-07-08 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2016-07-11,距離現在已有 3218 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
post-template | custom template | custom post type | wp custom post template | custom template for post |
內容簡介
此外掛可以讓您在 WordPress 的自訂文章類型中加入自訂文章範本。您可以像套用頁面範本一樣,輕鬆地在自訂文章類型文章中套用自訂文章範本。
這些範本的定義方式與頁面範本相似,如果選擇此範本,就會取代指定文章的single-cpt-slug.php (參見模板階層https://developer.wordpress.org/themes/basics/template-hierarchy/ )。
管理員可以輕鬆地透過點擊預設設定按鈕,使用此自訂文章類型外掛的預設設定。
實現注意事項:
頁面範本在檔案的頂端使用「模板名稱:」註解,而要使用此外掛的自訂文章範本,請使用「WP文章範本:my-post-type-slug」- 您可以通過將適用的註解添加到 PHP 檔案中,結合頁面範本和自訂文章類型範本。
自訂文章類型範本使用「WP文章類型:」加上自訂的文章類型別名,例如「WP文章類型:my-fun-post-type」,您可以將一個範本用於多種文章類型-如果留空,則將可用於所有文章類型,這將保持 WP 自訂文章範本 1.0 的相容性。
必須將自訂文章範本檔案存儲在與 index.php 範本文件相同的目錄/文件夾中,而不是在子目錄/子文件夾中。
功能
選擇需要顯示文章範本的自訂文章類型。
選擇使用預設設定,在您的佈景主題預設的文章類型中顯示文章範本。
您可以根據所選的自訂文章範本添加進階自訂欄位。
原文外掛簡介
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 posts, just as you would do the same for page templates.
The templates are defined similarly to page templates, and if selected will replace single-cpt-slug.php (see template hierarchy https://developer.wordpress.org/themes/basics/template-hierarchy/) for the specified post.
Admin can use default setting for the custom post type plugin by simply clicking on default setting button.
Implementation notes:
Page templates use, in the comments at the top of the file “Template Name:”, whereas to use this plugin’s custom post templates use “WP Post Template: my-post-type-slug” — you can combine page templates and custom post type templates by just adding the applicable comments to the PHP file.
CPT templates use “WP Post Type:” plus the custom post type slug, e.g. “WP Post Type: my-fun-post-type” you can use a single template for multiple post types – if you leave it blank it will be available to all post types, which will maintain compatibility with WP Custom Post Template 1.0.
You must have store 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.
You can add Advanced Custom Fields field groups based on the Custom Post Template chosen
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Custom Post Template Redux」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.4 | 1.4.1 | 1.4.2 | 1.4.3 | trunk |
延伸相關外掛(你可能也想知道)
WP Custom Post Template 》此外掛可讓您在 WordPress 自訂文章類型中新增自訂文章模板,並可在自訂文章類型的單一頁面中輕鬆套用自訂文章模板,類似於頁面模板的方式。, 模板的定義方式...。