0 ? get_post(get_post_meta(get_the_ID(), 'team_member_article1', true)) : null;
$post2 = get_post_meta(get_the_ID(), 'team_member_article2', true) > 0 ? get_post(get_post_meta(get_the_ID(), 'team_member_article2', true)) : null;
$post3 = get_post_meta(get_the_ID(), 'team_member_article3', true) > 0 ? get_post(get_post_meta(get_the_ID(), 'team_member_article3', true)) : null;
?>
';
if( $post1 ) :
if (get_the_post_thumbnail($post1->ID, 'medium')) :
$content .= '
' . get_the_post_thumbnail($post1->ID, 'medium') . '
';
endif;
$content .= '
';
endif;
if( $post2 ) :
if (get_the_post_thumbnail($post2->ID, 'medium')) :
$content .= '
' . get_the_post_thumbnail($post2->ID, 'medium') . '
';
endif;
$content .= '
';
endif;
if( $post3 ) :
if (get_the_post_thumbnail($post3->ID, 'medium')) :
$content .= '
' . get_the_post_thumbnail($post3->ID, 'medium') . '
';
endif;
$content .= '
';
endif;
echo $content;
?>