內容簡介
Epitome Subtitle 在常規文章和靜態頁面的編輯頁面中加入副標題字段。請注意,需要一些編碼才能在模板的正確位置顯示副標題。使用從模板調用的函數,您可以為您的主題提供顯示標題和副標題的功能。
函數
the_subtitle() 採用當前文章或頁面的 ID,並輸出副標題。
get_the_subtitle($post_id) 有一個可選參數(文章或頁面ID),並以字符串形式返回副標題。
has_post_subtitle($post_id) 有一個可選參數(文章或頁面ID),並檢查是否存在副標題。
外掛標籤
開發者團隊
原文外掛簡介
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.
