ID)) { $thumb_id = get_post_thumbnail_id($post->ID); $image = wp_get_attachment_image_src($thumb_id, 'fbshare-thumb'); $image = $image[0]; } } if ($image) { if (strpos($image, '../') === 0) $image = substr($image,3); if (strpos($image, '/') === 0) $image = substr($image,1); if (strpos($image,'http://') !== 0 && strpos($image, get_bloginfo('url')) !== 0) $image = (get_bloginfo('url')) . '/' . $image; echo ''; echo "\n"; echo ''; echo "\n"; } } ?>