Loading
view website
details

what is wp-subtitle?

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.

<?the_subtitle()?> is used for inside The Loop — if you wish to get a page/post’s subtitle outside The Loop, use <?get_the_subtitle($id)?>, where $id is the page or post’s ID ($post->ID).

Just like WP’s built-in <?the_title()?> method, <?the_subtitle()?> 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 <?get_the_subtitle()?>:

$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.

how is wp-subtitle installed?

  1. Upload the WP Subtitle plugin to your blog (YOURBLOG/wp-content/plugins) and activate it using the Wordpress plugin admin screen.
  2. Edit your page and/or post template and add <?the_subtitle()?> or <?get_the_subtitle()?> where you’d like the subtitle to appear.  Pass arguments per above instructions.

donate

If you appreciate this plugin, I’d appreciate a donation. Click the big button to donate via PayPal.

comments

4 comments on WP-Subtitle.

  1. Stachu (07.12.2009):

    Hi

    This plugin and its idea is so simple that I’m really really surprised that WP’s developers didn’t incorporate it yet!

    It is just GREAT! No need to say more :-)

    I just wish it had one additional functionality for multi language support. There is a huge group of WP users that run their blogs with qTranspale plugin. WP-Subtitle is able to provide subtitles only in 1 language that will unfortunately show up the same for any language displayed. Is there a way to make it qTranspate-compatible ?

    Greetings!

    Stachu

  2. Achim (08.19.2009):

    I second that. WP_Subtitle is great – but rather useless for me without support for qTranslate.

  3. Achim (08.19.2009):

    I just found a thread in the qTranslate forum for developpers to make their plugin compatible with qTranslate. Perhaps you want to take a look at this, Husani: http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=294

    Adding multi-lingual support to WP_Subtitle would IMHO really improve the plugin.

  4. Eric (11.10.2009):

    Can’t get it to work. Installed okay. The field shows in my edit posts. I type stuff in but it does not show up after publishintg