Plugin Directory

WP Subtitle

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:

  • 1.0:
    • First version

Requires: 2.7 or higher
Compatible up to: 2.8
Last Updated: 2009-7-10
Downloads: 5,141

Average Rating

3 stars
(17 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1
100,1,1
67,3,2
100,1,1
0,2,0
0,1,0
50,2,1
0,1,0
75,4,3
100,2,2