Skip to content

Use a meta box for editing the subtitle rather than newer admin field below main post title

Ben Huson edited this page Jul 2, 2014 · 1 revision

With the wps_subtitle_use_meta_box filter you can choose to revert back to editing the subtitle field in a meta box rather than in the new admin field below the main post title field (if you are using WordPress 3.5+ and WP Subtitle 2.2+).

Examples

Use the old meta box style for pages only:

<?php
function my_wps_subtitle_use_meta_box( $use_meta_box, $post_type ) {
	if ( 'page' == $post_type ) {
		return true;
	}
	return $use_meta_box;
}
add_filter( 'wps_subtitle_use_meta_box', 'my_wps_subtitle_use_meta_box', 10, 2 );
?>