|
@@ -204,8 +204,7 @@ function dw_opengraph() {
|
|
|
<meta property="og:url" content="<?php echo the_permalink(); ?>"/>
|
|
|
<meta property="og:site_name" content="<?php echo get_bloginfo(); ?>"/>
|
|
|
<meta property="og:image" content="<?php echo $img_src; ?>"/>
|
|
|
- <meta property="fb:app_id" content="203136806559589" />
|
|
|
- <meta name="twitter:card" content="summary_large_image">
|
|
|
+ <meta property="fb:app_id" content="203136806559589" />
|
|
|
<meta name="twitter:site" content="@windhamdavid">
|
|
|
<meta name="twitter:creator" content="@windhamdavid">
|
|
|
<meta name="twitter:title" content="<?php echo the_title(); ?>">
|
|
@@ -226,6 +225,7 @@ function dw_opengraph() {
|
|
|
<meta property="og:video:width" content="1280" />
|
|
|
<meta property="og:video:height" content="720" />
|
|
|
<meta property="og:video:type" content="video/mp4" />
|
|
|
+ <meta name="twitter:card" content="player">
|
|
|
<meta name="twitter:player" content="https://davidawindham.com/wha/container.html" />
|
|
|
<meta name="twitter:player:width" content="1280" />
|
|
|
<meta name="twitter:player:height" content="720" />
|
|
@@ -233,7 +233,9 @@ function dw_opengraph() {
|
|
|
<meta name="twitter:player:stream:content_type" content="video/mp4" />
|
|
|
<?php
|
|
|
} else {
|
|
|
- return;
|
|
|
+?>
|
|
|
+ <meta name="twitter:card" content="summary_large_image">
|
|
|
+<?php
|
|
|
}
|
|
|
}
|
|
|
add_action('wp_head', 'dw_opengraph', 5);
|