From 7bce0dd573affbca3d94d5072c0a0b41e9c1929c Mon Sep 17 00:00:00 2001 From: metodiew Date: Thu, 22 Jun 2017 15:54:50 +0300 Subject: [PATCH] Add a new check for the closing div for \service_street item. Fixing #4 --- functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/functions.php b/functions.php index c1e80bb..f1735d2 100644 --- a/functions.php +++ b/functions.php @@ -1006,6 +1006,7 @@ function display_rich_snippet($content) { $service .= ''.esc_attr( $service_postal_code ).',
'; if(trim($service_telephone) != "") $service .= ' Telephone No.'.esc_attr( $service_telephone ).''; + if(trim($service_street) != "") $service .= ''; $service .= '
';