[WordPress] 外掛分享: Template List Metabox

首頁外掛目錄 › Template List Metabox
WordPress 外掛 Template List Metabox 的封面圖片
1,000+
安裝啟用
★★★★★
5/5 分(1 則評價)
2785 天前
最後更新
問題解決
WordPress 3.1+ v1.1.2 上架:2014-08-24

內容簡介

這個外掛可以讓你選擇自訂文章類型並顯示模板清單的下拉式選單。

在前端,這個外掛可以幫助你顯示文章所選擇的模板。

現在,你可以像頁面一樣每個文章都選擇不同的模板。

由010Pixel開發

使用方法

使用這個外掛前,你應該先準備好要使用的模板。

前往外掛 > Template List Metabox。你會看到所有自訂文章類型,包括文章。
勾選所有想要啟用模板清單 metabox 的文章類型的方塊。
創建一篇文章,然後選擇你想要使用的模板。
如果你不想選擇自定義模板,則選擇預設模板。選擇預設模板將會顯示 single.php 、 single-{$object->post_type}.php 和 single-{$object->post_type}-{$object->post_name}.php 中的內容。

如有任何疑問,請聯繫我 010Pixel

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Template List Metabox」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin will allow you to select custom posts types for which you want to show metabox of template list dropdown menu.
On the front end, this plugin will help to show selected template for the post.
Now you can choose to have different templates for each post just like pages.
Made by 010Pixel
Use
Before using this plugin, you should have some templates ready to be used.

Go to Plugins > Template List Metabox. You will be able to see all the custom post types including Post.
Tick all the checkbox for the post types for which you want to enable template list metabox.
Create a post and choose the template you would like to use.
If you do not want to choose custom template then select Default Template. Choosing Default Template will show content from single.php, single-{$object->post_type}.php, single-{$object->post_type}-{$object->post_name}.php

For any query, you can contact me at 010 Pixel

延伸相關外掛

文章
Filter
Apply Filters
Mastodon