Fix reference to ID attribute of post for featured image retrieval
authorLaury GvR <laury@gaslightmedia.com>
Wed, 23 Oct 2019 15:25:09 +0000 (11:25 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 23 Oct 2019 15:25:09 +0000 (11:25 -0400)
functions.php
style.css

index d16dca2..086dfad 100644 (file)
@@ -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 '</div>';
 //            echo '</div>';
 //        }
-    } 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 '<div';
         echo ' style="background-image: url('.$default_image_path.');'
index 8078d84..7cf4e60 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: destinationmi
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for Destination Michigan
-Version: 1.0.3
+Version: 1.0.4
 */