From: Laury GvR Date: Wed, 23 Oct 2019 15:25:09 +0000 (-0400) Subject: Fix reference to ID attribute of post for featured image retrieval X-Git-Tag: v1.0.4^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=e8f1eb9c895e24f1298a220580283112f15af3e3;p=WP-Themes%2Fdestinationmi.git Fix reference to ID attribute of post for featured image retrieval --- 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 '