diff --git a/src/wp-content/themes/twentytwenty/inc/template-tags.php b/src/wp-content/themes/twentytwenty/inc/template-tags.php index e15ae6652bbec..0aa829479a534 100644 --- a/src/wp-content/themes/twentytwenty/inc/template-tags.php +++ b/src/wp-content/themes/twentytwenty/inc/template-tags.php @@ -524,7 +524,8 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) $meta_output = ob_get_clean(); // If there is meta to output, return it. - if ( $has_meta && $meta_output ) { + $meta_output_inner = trim( strip_tags( $meta_output ) ); + if ( ( $has_meta || '' !== $meta_output_inner ) && $meta_output ) { return $meta_output;