$v) {
            if ($v[‘thumbnail_url’]) {
                $data = [
                    ‘img’ => $v[‘thumbnail_url’],
                    ‘caption’ => $v[‘caption’],
                    ‘link’ => $v[‘permalink’],
                ];
            } else {
                $data = [
                    ‘img’ => $v[‘media_url’],
                    ‘caption’ => $v[‘caption’],
                    ‘link’ => $v[‘permalink’],
                ];
            }
            $insta[] = $data;
        }
        foreach ($insta as $k => $v){
            echo ‘‘;
        }
    ?>