|
@@ -209,7 +209,7 @@ function dw_opengraph() {
|
|
|
$content = do_shortcode( apply_filters( 'the_content', $post->post_content ) );
|
|
|
$media_url = get_post_meta( get_the_ID(), 'media', true );
|
|
|
$media = get_media_embedded_in_content( $content );
|
|
|
- if( !empty($media_url) ) {
|
|
|
+ if( !empty($media) ) {
|
|
|
$video_url = $media[0];
|
|
|
?>
|
|
|
<meta property="og:video" content="<?php echo $media_url; ?>" />
|