tag. * if not, then wrap it. * * credit: http://justintadlock.com/archives/2012/08/27/post-formats-quote */ function simple_grey_pf_quote( $content ) { /* Check if we're displaying a 'quote' post. */ if ( has_post_format( 'quote' ) ) { /* Match any
elements. */ preg_match( '//', $content, $matches ); /* If no
elements were found, wrap the entire content in one. */ if ( empty( $matches ) ) $content = "
{$content}
"; } return $content; } add_filter( 'the_content', 'simple_grey_pf_quote' ); endif;