ID)){ $p_season_num = 'Minis '.get_field('segment_year',$s->ID); }else{ $p_season_num = 'Season '.get_field('season_number',$s->ID); } $p_image = get_field('season_image',$s->ID); $p_title = get_the_title($s->ID); $season_id = $s->ID; } if ( has_post_thumbnail($postID) ){ $p_image = get_the_post_thumbnail_url($postID,'large'); } ?>