Simple subtitles adds a field on posts, pages, or custom post types for adding a subtitle. Post types can be enabled/disabled in the writing settings section.
There are several functions in the plugin that allow you to easily get subtitles for different contexts. These functions mirror the functions in core for titles.
If you want to display the subtitle in your theme on your own, use the following filter:
By default, only tags are allowed in subtitles (with only class and style attributes). There is a filter this.
For more info on this, read into the wp_kses functions.
Get the subtitle.
Display the current post’s subtitle. Should be used within the loop.
Get the subtitle for use in an HTML attribute.
* Add a column in the admin showing subtitles.
* Add a setting for selecting the subtitle HTML tag.

评论0