From: Laury GvR Date: Wed, 10 Feb 2016 15:57:40 +0000 (-0500) Subject: Place back the get_thumbnail_id function X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6ce65bb8c3bfa8995db52c1229a19d990e22ad11;p=WP-Themes%2Fglmthemes%2Fsaultstemarie-theme.git Place back the get_thumbnail_id function --- diff --git a/functions.php b/functions.php index c4696b0..f380415 100644 --- a/functions.php +++ b/functions.php @@ -108,7 +108,7 @@ function glm_get_featured() { } if (has_post_thumbnail($post_id) && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) { - $image_data = wp_get_attachment_image_src($post_id, "full"); + $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full"); $imageUrl = ''; } else { $imageUrl = '';