[WordPress] 外掛分享: Custom Templates

首頁外掛目錄 › Custom Templates
40+
安裝啟用
尚無評分
3338 天前
最後更新
問題解決
WordPress 4.4+ v1.2.1 上架:2016-10-08

內容簡介

這個外掛讓你能夠為單篇文章頁面的特定文章類型創建自訂範本並修改內容輸出。

短碼

[tmpl_field name=任何文章屬性]

文章屬性:

ID
post_author
post_date
post_date_gmt
post_content
post_title
post_excerpt
post_status
comment_status
ping_status
post_password
post_name
to_ping
pinged
post_modified
post_modified_gmt
post_content_filtered
post_parent
guid
menu_order
post_type
post_mime_type
comment_count
filter

[tmpl_field name=cf_任何自訂欄位]

例如:[tmpl_field name=cf_my_custom_field]

[tmpl_field name=tax_任何分類]

例如:[tmpl_field name=tax_post_tag]

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Custom Templates」→ 直接安裝(推薦)

原文外掛簡介

The plugin allows you to create custom templates and modify content output for single post pages in particular post type.
Shortcodes

[tmpl_field name=ANY_POST_PROPERTY]

Post properties:
ID
post_author
post_date
post_date_gmt
post_content
post_title
post_excerpt
post_status
comment_status
ping_status
post_password
post_name
to_ping
pinged
post_modified
post_modified_gmt
post_content_filtered
post_parent
guid
menu_order
post_type
post_mime_type
comment_count
filter

[tmpl_field name=cf_ANY_CUSTOM_FIELD]

e.g. [tmpl_field name=cf_my_custom_field]

[tmpl_field name=tax_ANY_TAXONOMY_SLUG]

e.g. [tmpl_field name=tax_post_tag]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon