From: Laury GvR Date: Thu, 5 Apr 2018 20:54:31 +0000 (-0400) Subject: Remove member image from being shown as the featured header image X-Git-Tag: v1.0.0^2~27 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=37c6e845c8bf6f35573125f438dcf0dbad8fbc24;p=WP-Themes%2Fbayharbor.git Remove member image from being shown as the featured header image --- diff --git a/functions.php b/functions.php index fdc6db5..bffcfba 100644 --- a/functions.php +++ b/functions.php @@ -97,14 +97,14 @@ function glm_get_header($memberID = false) { $image_data = $image_data[0]; $featured_classes[] = $image_data ? "wp-featured" : ""; } else { - $image_data = apply_filters('member_images',$memberID,true,'original'); - $featured_classes[] = $image_data ? "member-featured" : ""; - if ( !$image_data ) { - $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); - $image_caption = get_the_post_thumbnail_caption(); - $image_data = $image_data[0]; - $featured_classes[] = $image_data ? "wp-featured" : ""; - } +// $image_data = apply_filters('member_images',$memberID,true,'original'); +// $featured_classes[] = $image_data ? "member-featured" : ""; +// if ( !$image_data ) { +// $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); +// $image_caption = get_the_post_thumbnail_caption(); +// $image_data = $image_data[0]; +// $featured_classes[] = $image_data ? "wp-featured" : ""; +// } if ( !$image_data ) { $image_data = $default_member_image_path; $featured_classes[] = $image_data ? "member-default" : "";