Remove member image from being shown as the featured header image
authorLaury GvR <laury@gaslightmedia.com>
Thu, 5 Apr 2018 20:54:31 +0000 (16:54 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 5 Apr 2018 20:54:31 +0000 (16:54 -0400)
functions.php

index fdc6db5..bffcfba 100644 (file)
@@ -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" : "";