diff --git a/opengraph.php b/opengraph.php index ff75780..7b86afd 100644 --- a/opengraph.php +++ b/opengraph.php @@ -174,7 +174,13 @@ function opengraph_meta_tags() { $metadata = opengraph_metadata(); foreach ( $metadata as $key => $value ) { if ( empty($key) || empty($value) ) continue; - echo '' . "\n"; + if ( is_array( $value ) ) { + foreach ( $value as $v ) { + echo '' . "\n"; + } + } else { + echo '' . "\n"; + } } } add_action('wp_head', 'opengraph_meta_tags');