From fa4ae22a17a3b5d9d9b1c5965e497ac6233523b1 Mon Sep 17 00:00:00 2001 From: ThemeBoy Date: Wed, 21 Oct 2015 14:18:06 +0900 Subject: [PATCH] Do not require team logos in event --- templates/event-logos.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/event-logos.php b/templates/event-logos.php index a8e8f719..26ad4ef4 100644 --- a/templates/event-logos.php +++ b/templates/event-logos.php @@ -29,8 +29,11 @@ if ( $teams ): $team_logos = array(); $i = 0; foreach ( $teams as $team ): - if ( ! has_post_thumbnail( $team ) ) continue; - $logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon' ); + if ( ! has_post_thumbnail( $team ) ) { + $logo = ''; + } else { + $logo = get_the_post_thumbnail( $team, 'sportspress-fit-icon' ); + } $alt = sizeof( $teams ) == 2 && $i % 2;