From fded706edb9547295174246657af0de74548a90b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 28 Sep 2015 10:09:38 -0400 Subject: [PATCH] correcting for post_type --- functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index c9d1a56..1bc7401 100644 --- a/functions.php +++ b/functions.php @@ -203,7 +203,8 @@ function glm_site_scripts() /* Header for posts*/ function glm_get_background() { - $eventPage = (is_single() && is_post_type('ai1ec_event')); + global $post; + $eventPage = (is_single() && get_post_type() == 'ai1ec_event'); if (has_post_thumbnail() && !$eventPage) { $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); $imageUrl = ''; -- 2.17.1