[WordPress] 外掛分享: Epitome Subtitle

首頁外掛目錄 › Epitome Subtitle
全新外掛
安裝啟用
尚無評分
3758 天前
最後更新
問題解決
WordPress 3.5+ v1.0 上架:2015-12-03

內容簡介

Epitome Subtitle 在常規文章和靜態頁面的編輯頁面中加入副標題字段。請注意,需要一些編碼才能在模板的正確位置顯示副標題。使用從模板調用的函數,您可以為您的主題提供顯示標題和副標題的功能。

函數

the_subtitle() 採用當前文章或頁面的 ID,並輸出副標題。
get_the_subtitle($post_id) 有一個可選參數(文章或頁面ID),並以字符串形式返回副標題。
has_post_subtitle($post_id) 有一個可選參數(文章或頁面ID),並檢查是否存在副標題。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Epitome Subtitle adds a subtitle field in the edit page of a regular post and static page. Note that a small coding is required to display the subtitle in the right location of your template. You provide to your theme the ability to display a title and a subtitle using functions that you call from your template.
Functions

the_subtitle() takes the current post or page ID and outputs the subtitle.
get_the_subtitle($post_id) has one optional parameter (post or page ID) and returns the subtitle as a string.
has_post_subtitle($post_id) has one optional parameter (post or page ID) and checks whether a subtitle exists.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon