From e8f1eb9c895e24f1298a220580283112f15af3e3 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 23 Oct 2019 11:25:09 -0400 Subject: [PATCH] Fix reference to ID attribute of post for featured image retrieval --- functions.php | 4 ++-- style.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index d16dca2..086dfad 100644 --- a/functions.php +++ b/functions.php @@ -106,7 +106,7 @@ function glm_get_header($memberID = false) { . 'background-position:center center;background-size: 100%;background-repeat:no-repeat;'; //$default_member_background_styles = $default_background_styles; - if ((has_post_thumbnail() && $post->post_type == 'page') /*|| is_page('member-detail')*/) { + if ((has_post_thumbnail() && $post->post_type == 'page' && $post->ID != 122 ) /*|| is_page('member-detail')*/) { if( !$memberID ) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); $image_data = $image_data[0]; @@ -143,7 +143,7 @@ function glm_get_header($memberID = false) { // echo ''; // echo ''; // } - } else if ( $post->id != 122 ) { // usn't the event registration page + } else if ( $post->ID != 122 ) { // usn't the event registration page $featured_classes[] = "interior-default"; echo '