Viewing 1 replies (of 1 total)
  • Thread Starter ronald_123

    (@ronald_123)

    Adding this to functions.php did the job for me:

    function wpseo_metadesc_subheading( $description ) {
    	global $post;
    	if ( $subheading = get_post_meta( $post->ID, '_subheading', true ) ) {
    		return $subheading;
    	}
    	return $description;
    }
    add_filter( 'wpseo_metadesc', 'wpseo_metadesc_subheading' );

    Thanks to SubHeading plugin author Steve for that.

Viewing 1 replies (of 1 total)

The topic ‘Use SubHeading as default meta description’ is closed to new replies.