From 37c6e845c8bf6f35573125f438dcf0dbad8fbc24 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 5 Apr 2018 16:54:31 -0400 Subject: [PATCH] Remove member image from being shown as the featured header image --- functions.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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" : ""; -- 2.17.1