Add subtitles (subheadings) to your pages and posts.
The WP Subtitle plugin allows your pages and posts to contain a subtitle. Also called a sub-heading, this this short line of text is meant to appear beneath a post's (or page's) title, but can be inserted in your template wherever you choose.
<?thesubtitle()?> is used for inside The Loop -- if you wish to get a page/post's subtitle outside The Loop, use <?getthe_subtitle($id)?>, where $id is the page or post's ID ($post->ID).
Just like WP's built-in <?thetitle()?> method, <?thesubtitle()?> tag accepts three parameters:
$before (string) Text to place before the subtitle, defaults to "".
$after (string) Text to place after the subtitle, defaults to "".
$display (boolean) If true, display the subtitle in XHTML; if false, return the subtitle for use in PHP. Defaults to true.
Things are slightly different in <?getthesubtitle()?>:
$id (integer) Post (or page) ID.
$before (string) Text to place before the subtitle, defaults to "".
$after (string) Text to place after the subtitle, defaults to "".
$display (boolean) If true, display the subtitle in XHTML; if false, return the subtitle for use in PHP. Defaults to true.
Changelog:
Requires: 2.7 or higher
Compatible up to: 2.8
Last Updated: 2009-7-10
Downloads: 5,141
Got something to say? Need help?