Exemple #1
0
language_attributes();
?>
> <!--<![endif]-->
<head>
    <title><?php 
wp_title('|', true, 'right');
?>
</title>
    <meta charset="<?php 
bloginfo('charset');
?>
" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php 
td_util::author_meta();
?>
    <link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />

    <?php 
//facebook sharing fix for videos, we add the custom meta data
if (is_single()) {
    global $post;
    if (has_post_thumbnail($post->ID)) {
        $td_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');
        if (!empty($td_image[0])) {
            echo '<meta property="og:image" content="' . $td_image[0] . '" />';
        }