From 9f4ccd400b26622d00a9fa88d5100c74de1d1c9e Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 24 Sep 2015 12:45:56 -0400 Subject: [PATCH] Fixes - image and member name Member name shows up on all of them. fixed Image size adjustment. --- controllers/front.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/front.php b/controllers/front.php index 87b6c21..5481881 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -104,6 +104,8 @@ class glm_coupon_front $custom = get_post_custom($coupon->ID); if ($custom['glm_coupons_member'][0]) { $member_data = $this->_getMemberData($custom['glm_coupons_member'][0]); + } else { + $member_data = array(); } $coupon->end = false; $coupon->glm_coupons_startdate = $custom['glm_coupons_startdate'][0]; @@ -112,7 +114,7 @@ class glm_coupon_front $coupon->glm_coupons_url = preg_replace('/http:\/\//i', '', $coupon->glm_coupons_url); $coupon->glm_coupons_member = ($member_data['member_name']) ? $member_data['member_name'] : ''; $coupon->glm_coupons_address = ($member_data['address']) ? $member_data['address'] : ''; - $coupon->glm_coupons_thumb = get_the_post_thumbnail($coupon->ID, 'thumbnail', array('class' => 'aligncenter')); + $coupon->glm_coupons_thumb = get_the_post_thumbnail($coupon->ID, array(151, 151), array('class' => 'aligncenter')); $post_categories = wp_get_object_terms( $coupon->ID, GLM_COUPON_TAX_CATEGORIES, -- 2.17.1