Add the following in header.php, within the html head tag. <?php if (has_post_thumbnail() && is_single()) { // if feat im exists && current page is single article $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' ); $thumb_url = $thumb['0']; ?> <meta property="og:image" content="<?php echo $thumb_url; ?>" />
Tag Archives: header
JavaScript to Footer in WordPress
20-Jan-10Want to move that jQuery and other js references from header to footer? Try JavaScript to Footer plugin.
The only way: use a VBA macro. E.g. ActiveSheet.PageSetup.LeftFooter = "Check: " & Sheets(SETTINGS_SHEET_NAME).Range("F4").Value