=== WP Subtitle 2 === Contributors: husobj Tags: subtitle, content, title, subheading, subhead, alternate title Requires at least: 3.0 Tested up to: 3.2.1 Stable tag: 1.0 Add subtitles (subheadings) to your pages, posts and custom post types. == Description == The WP Subtitle 2 plugin enables you to add subtitles to your pages, posts and custom post types. It is based on the functionality of the <a href="http://www.husani.com/ventures/wordpress-plugins/wp-subtitle/">WP Subtitle</a> plugin but is completely re-coded from scratch to work with WordPress 3.0+ including support for custom post types. It supports the same functions as WP Subtitle so you can use either plugin - but not both at the same time, obviously. The functions can be called slightly different though so please check the usage notes below. <?php the_subtitle(); ?> can be used inside The Loop. Outside The Loop, use <?php echo get_the_subtitle( $id ); ?>, where $id is theor post's ID. Just like the WordPress <?php the_title(); ?> function, <?php the_subtitle(); ?> accepts three parameters: = <?php the_subtitle( $before = '', $after = '', $echo = true ); ?> = $before (string) Text before the subtitle. Defaults to "". $after (string) Text after the subtitle. Defaults to "". $echo (boolean) If true, outputs the subtitle HTML. If false, return the subtitle for use in PHP. Defaults to true. = <?php echo get_the_subtitle( $id = 0 ); ?> = $id (integer) Post (or page) ID. = Add support form a custom post type = <?php add_post_type_support( 'my_post_type', 'wps_subtitle' ); ?> == Installation == 1. Upload the WP Subtitle 2 plugin to your WordPress plugins folder (/wp-content/plugins) or install it via your WordPress admin. Then activate it from the plugin admin page. 2. Edit your theme template and add <?php the_subtitle(); ?> or <?php get_the_subtitle(); ?> where you would like the subtitle to appear. == Screenshots == 1. Post edit screen 2. A single post showing a subtitle == Changelog == = 1.0 = * First version