The following code inserted into the header.php passes off the thumbnail in the article.

 <?php
if (is_home()) {
	echo '<meta property="og:image" content="http://www.amarketplaceofideas.com/wp-content/uploads/2013/04/Wavy-Arm-Guy.jpg"/>';
}
elseif (function_exists("has_post_thumbnail") && has_post_thumbnail() && !is_home() ) { 
	thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(post->ID), full ); ?>
</p>
<meta content="<?php echo $thumbnail[0]; ?>" property="og:image" />
<?php } ?>
<p>
	

Categories: PHPSoftware

1 Comment

Freemon SandleWould MonsterID Icon Freemon SandleWould · April 30, 2013 at 5:55 am

Hey Banjo!  You do know you need to replace the default image link with your own right?  

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *