Epitome Subtitle
v1.0Fred Dessaint · 2015年12月4日 上架
Add a subtitle to regular post and static you display with a set of functions from your template.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,245
- 最近更新
- 2015年12月3日
需要 WordPress 3.5+已测试到 4.3.34
贡献者
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.