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() ) { <img decoding= "async" src= "https://www.amarketplaceofideas.com/wp-content/ql-cache/quicklatex.com-b6f4891ad6309af7da5414d02e0b5022_l3.svg" class = "ql-img-inline-formula quicklatex-auto-format" alt= "thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id(" title= "Rendered by QuickLaTeX.com" height= "20" width= "473" style= "vertical-align: -6px;" >post->ID), full ); ?> </p> <meta content= "<?php echo $thumbnail[0]; ?>" property= "og:image" /> <?php } ?> <p> |
1 Comment
Hey Banjo! You do know you need to replace the default image link with your own right?