<?php if(has_post_thumbnail()): ?>
<?php
// アイキャッチ画像のIDを取得
$thumbnail_id = get_post_thumbnail_id();
$eye_img = wp_get_attachment_image_src( $thumbnail_id , 'full' );
echo '<meta property="og:image" content="'.$eye_img[0].'">';
?>
<?php else: ?>
<meta property="og:image" content="★アイキャッチ無い時の指定画像★">
<?php endif; ?>
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)