{"id":65828,"date":"2017-05-12T17:05:27","date_gmt":"2017-05-12T17:05:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-multiple-subtitles\/"},"modified":"2017-05-12T17:05:27","modified_gmt":"2017-05-12T17:05:27","slug":"wp-multiple-subtitles","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-multiple-subtitles\/","author":15341811,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.9.2","stable_tag":"trunk","tested":"4.6.30","requires":"3.7","requires_php":"","requires_plugins":"","header_name":"WP Multiple Subtitles","header_author":"Talha Malik","header_description":"","assets_banners_color":"","last_updated":"2017-05-12 17:05:27","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=SLZUF4XJTS4E6","header_plugin_uri":"http:\/\/github.org\/talhamalik\/wp-multiple-subtitles\/","header_author_uri":"http:\/\/talhamalik.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":480,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.8.1":"<p>Fix PHP warning - <code>get_admin_subtitle_value()<\/code> should be declared static.<\/p>","2.8":"<p>Allow subtitle to contain HTML (same as main post title ) and add <code>wps_default_subtitle<\/code> filter.<\/p>","2.7.1":"<p>Fix incorrect post ID reference preventing subtitle from saving.<\/p>","2.7":"<p>Trim subtitle and wptexturize() by default.<\/p>","2.6":"<p>Added quick edit support for subtitle. Security Update: Sanitize <code>$_REQUEST<\/code> and <code>$_GET<\/code> when establishing post type in the admin.<\/p>","2.5":"<p>Add [wp_subtitle] shortcode. Do not use variable for textdomain - causes issues for parsers.<\/p>","2.4.1":"<p>Fix PHP notice warning on 404 error page.<\/p>","2.4":"<p>Add subtitle admin column.<\/p>","2.3.1":"<p>Security Update: Ensure subtitles are sanitized when saving.<\/p>","2.3":"<p>Prevent subtitle fields from displaying on unsupported post types and fix issue with quotes in subtitles.<\/p>","2.2":"<p>Subtitle field moved to below title field (only in WordPress 3.5+)<\/p>","2.1":"<p>Fixed static method warnings and only load admin functionality when needed.<\/p>","2.0":"<p>Added custom post type support and support for more recent versions of WordPress.<\/p>","1.0":"<p>Initial release.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Edit post screen (WordPress 3.5+ and WP Title 2.2+)","2":"Edit post screen (for earlier versions of WordPress or using the 'gi_wp_subtitles_use_meta_box' filter)","3":"A single page showing a subtitle"}},"plugin_section":[],"plugin_tags":[529,71148,34315,27479,1460],"plugin_category":[],"plugin_contributors":[79147,77999],"plugin_business_model":[],"class_list":["post-65828","plugin","type-plugin","status-closed","hentry","plugin_tags-content","plugin_tags-subhead","plugin_tags-subheading","plugin_tags-subtitle","plugin_tags-title","plugin_contributors-husani","plugin_contributors-husobj","plugin_committers-talhamalik555"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-multiple-subtitles.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<pre><code>&lt;?php the_subtitle(); ?&gt; is used for inside The Loop. If you wish to get a page\/post's subtitle outside The Loop, use `&lt;?php get_the_subtitle( $post ); ?&gt;`, where $post is a post object or ID ($post-&gt;ID).\n<\/code><\/pre>\n\n<h4>Parameters<\/h4>\n\n<p>Just like WP's built-in <code>&lt;?php the_title(); ?&gt;<\/code> method, <code>&lt;?php the_subtitle(); ?&gt;<\/code> tag accepts three parameters:<\/p>\n\n<p><strong>$before<\/strong><br \/>\n<em>(string)<\/em> Text to place before the subtitle. Defaults to \"\".<\/p>\n\n<p><strong>$after<\/strong><br \/>\n<em>(string)<\/em> Text to place after the subtitle. Defaults to \"\".<\/p>\n\n<p><strong>$echo<\/strong><br \/>\n<em>(boolean)<\/em> If true, display the subtitle in HTML. If false, return the subtitle for use in PHP. Defaults to true.<\/p>\n\n<p>Things are slightly different in <code>&lt;?php get_the_subtitle(); ?&gt;<\/code>:<\/p>\n\n<p><strong>$post<\/strong><br \/>\n<em>(int|object)<\/em> Post, page or custom post type object or ID.<\/p>\n\n<p><strong>$before<\/strong><br \/>\n<em>(string)<\/em> Text to place before the subtitle. Defaults to \"\".<\/p>\n\n<p><strong>$after<\/strong><br \/>\n<em>(string)<\/em> Text to place after the subtitle. Defaults to \"\".<\/p>\n\n<p><strong>$echo<\/strong><br \/>\n<em>(boolean)<\/em> If true, display the subtitle in HTML. If false, return the subtitle for use in PHP. Defaults to true.<\/p>\n\n<p>For full details on the template tags and their arguments, <a href=\"https:\/\/github.com\/benhuson\/wp-subtitle\/wiki\">view the documentation here<\/a>.<\/p>\n\n<p>By default, subtitle are supported by both posts and pages. To add support for custom post types use add_post_type_support( 'my_post_type', 'gi_wp_subtitles' ).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the WP Subtitle plugin to your WordPress site in the <code>\/wp-content\/plugins<\/code> folder or install via the WordPress admin.<\/li>\n<li>Activate it from the Wordpress plugin admin screen.<\/li>\n<li>Edit your page and\/or post template and use the <code>&lt;?php the_subtitle(); ?&gt;<\/code> template tag where you'd like the subtitle to appear.<\/li>\n<\/ol>\n\n<p>For full details on the template tags and their arguments, <a href=\"https:\/\/github.com\/benhuson\/wp-subtitle\/wiki\">view the documentation here<\/a>.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the WP Subtitle plugin to your WordPress site in the <code>\/wp-content\/plugins<\/code> folder or install via the WordPress admin.<\/li>\n<li>Activate it from the Wordpress plugin admin screen.<\/li>\n<li>Edit your page and\/or post template and use the <code>&lt;?php the_subtitle(); ?&gt;<\/code> template tag where you'd like the subtitle to appear.<\/li>\n<\/ol>\n\n<p>For full details on the template tags and their arguments, <a href=\"https:\/\/github.com\/benhuson\/wp-subtitle\/wiki\">view the documentation here<\/a>.<\/p><\/dd>\n<dt>What does WP Subtitle do?<\/dt>\n<dd><p>The plugin adds a Subtitle field when editing posts or pages. The subtitle is stores as a custom field (post meta data) and can be output using template tags.<\/p><\/dd>\n<dt>Where does WP Subtitle store the subtitles?<\/dt>\n<dd><p>All subtitles are stored as post meta data. Deactivating this plugin will not remove those fields.<\/p><\/dd>\n<dt>How do I add the subtitle to my pages?<\/dt>\n<dd><p>Refer to <a href=\"https:\/\/github.com\/benhuson\/wp-subtitle\/wiki\">the documentation<\/a>.<\/p><\/dd>\n<dt>How do I add support for custom post types?<\/dt>\n<dd><p>To add support for custom post types use add_post_type_support( 'my_post_type', 'gi_wp_subtitles' ):<\/p>\n\n<pre><code>function my_wp_subtitle_page_part_support() {\n    add_post_type_support( 'my_post_type', 'gi_wp_subtitles' );\n}\nadd_action( 'init', 'my_wp_subtitle_page_part_support' );\n<\/code><\/pre><\/dd>\n<dt>Where can I get help?<\/dt>\n<dd><p>Please post support requests and questions in the <a href=\"http:\/\/wordpress.org\/support\/plugin\/wp-subtitle\">WordPress.org Support<\/a> forum.<\/p><\/dd>\n<dt>How should I report a bug?<\/dt>\n<dd><p>Please submit bugs\/errors directly to the <a href=\"https:\/\/github.com\/benhuson\/wp-subtitle\/issues\">GitHub Issues<\/a> list.<\/p><\/dd>\n<dt>How can I contribute code?<\/dt>\n<dd><p>The plugin is <a href=\"https:\/\/github.com\/benhuson\/wp-subtitle\">hosted on GitHub<\/a> and pull requests are welcome.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.8.1<\/h4>\n\n<ul>\n<li>Fix PHP warning - <code>get_admin_subtitle_value()<\/code> should be declared static.<\/li>\n<\/ul>\n\n<h4>2.8<\/h4>\n\n<ul>\n<li>Allow subtitle to contain HTML (same as main post title ).<\/li>\n<li>Add <code>wps_default_subtitle<\/code> filter.<\/li>\n<li>Use <code>WP_Subtitle<\/code> class to validate saving of subtitle in the admin.<\/li>\n<\/ul>\n\n<h4>2.7.1<\/h4>\n\n<ul>\n<li>Fix incorrect post ID reference preventing subtitle from saving.<\/li>\n<\/ul>\n\n<h4>2.7<\/h4>\n\n<ul>\n<li>Trim subtitle by default.<\/li>\n<li>Apply wptexturize() on subtitle.<\/li>\n<li>Use WP_Subtitle class to manage post subtitle.<\/li>\n<\/ul>\n\n<h4>2.6<\/h4>\n\n<ul>\n<li>Security Update: Sanitize <code>$_REQUEST<\/code> and <code>$_GET<\/code> when establishing post type in the admin.<\/li>\n<li>Added quick edit support for subtitle. Props <a href=\"https:\/\/github.com\/fabianmarz\">Fabian Marz<\/a> and <a href=\"https:\/\/github.com\/sun\">sun<\/a>.<\/li>\n<li>Allow subtitle post meta key to be filtered using <code>gi_wp_subtitles_key<\/code>.<\/li>\n<li>Add German translation. Props <a href=\"https:\/\/github.com\/hatsumatsu\">hatsumatsu<\/a>.<\/li>\n<\/ul>\n\n<h4>2.5<\/h4>\n\n<ul>\n<li>Add [wp_subtitle] shortcode.<\/li>\n<li>Do not use variable for textdomain - causes issues for parsers.<\/li>\n<li>Declare methods as public or private.<\/li>\n<\/ul>\n\n<h4>2.4.1<\/h4>\n\n<ul>\n<li>Fix PHP notice warning on 404 error page. Props Jay Williams.<\/li>\n<li>Add a little space above subtitle field when below title field in admin.<\/li>\n<\/ul>\n\n<h4>2.4<\/h4>\n\n<ul>\n<li>Add subtitle admin column.<\/li>\n<\/ul>\n\n<h4>2.3.2<\/h4>\n\n<ul>\n<li>Show subtitle admin field when adding new post. Props Gabriel Doty.<\/li>\n<\/ul>\n\n<h4>2.3.1<\/h4>\n\n<ul>\n<li>Security Update: Ensure subtitles are sanitized when saving.<\/li>\n<\/ul>\n\n<h4>2.3<\/h4>\n\n<ul>\n<li>Prevent subtitle fields from displaying on post types for which support has not been added using add_post_type_support(). Previously the fields were displayed but the subtitle would not be saved.<\/li>\n<li>Escape subtitle admin field value - fixes issues with subtitles with quotes.<\/li>\n<\/ul>\n\n<h4>2.2<\/h4>\n\n<ul>\n<li>Added 'gi_wp_subtitles_use_meta_box' filter to allow the edit field to be displayed in a meta box (the old way).<\/li>\n<li>Moved subtitle field from meta box to below title field in WordPress 3.5+ (props Tor Morten)<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Ready for translation - .pot file added.<\/li>\n<li>Added deprecated function warnings if WP_DEBUG enabled.<\/li>\n<li>Fix static method warnings.<\/li>\n<li>Only include admin functionality when needed.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Use <code>&lt;?php<\/code> instead of just <code>&lt;?<\/code>.<\/li>\n<li>Break out some of the code into separate functions.<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Added custom post type support - use add_post_type_support( '{post_type}', 'gi_wp_subtitles' ).<\/li>\n<li>Added 'wps_meta_box_title' filter.<\/li>\n<li>Added 'gi_wp_subtitles' filter.<\/li>\n<li>Added 'gi_wp_subtitles_field_description' filter.<\/li>\n<li>Fixed bug in more recent versions of WordPress.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version.<\/li>\n<\/ul>","raw_excerpt":"Add subtitles (subheadings) to your pages, posts or custom post types.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/65828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=65828"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/talhamalik555"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=65828"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=65828"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=65828"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=65828"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=65828"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=65828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}