From: Anthony Talarico Date: Mon, 25 Jan 2016 17:18:39 +0000 (-0500) Subject: removing featured image from search php X-Git-Tag: v1.0.0^2~109 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e3f6eabb16f23d51818484f0e798ec63a69acc06;p=WP-Themes%2Fsaultstemarie.git removing featured image from search php --- diff --git a/functions.php b/functions.php index a774b81..524626a 100644 --- a/functions.php +++ b/functions.php @@ -90,7 +90,7 @@ function glm_get_header() { else $post_id = $post->ID; - if (has_post_thumbnail($post_id) && (!(is_home()) ) && (!(is_single())) && (!(is_archive()))) { + if (has_post_thumbnail($post_id) && (!(is_home()) ) && (!(is_single())) && (!(is_archive())) && (!(is_search()))) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), "full"); echo ' style="background-image: url('.$image_data[0].');height:0;padding:0;padding-bottom:30%;background-position:center center;background-size: 100%;background-repeat:no-repeat;max-height: 420px;min-height: 150px; "'; } else {