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;