$instagram = new mishaInstagram();

$by_tag = $instagram->serve_tag_media( ‘dombay’, 30 ); // 30 is how much photos you would like to display

// your can just prin_r() the result to view all the parameters
// print_r( $by_tag );

if( !is_wp_error( $by_tag ) ) {
$html = ”;
foreach ( $by_tag[‘response’] as $photo ) {
$html .= ”; // instagram link
$html .= ”; // hi-res photo: $photo[‘display_url’]
$html .= ”;
// $photo[‘taken_at_timestamp’] – publish date
// $photo[‘dimensions’][‘height’] and $photo[‘dimensions’][‘width’] – original height and width
// $photo[‘edge_media_to_caption’][‘edges’][0][‘node’][‘text’] – caption 😀
// $photo[‘edge_liked_by’][‘count’] – number of likes
// $photo[‘edge_media_to_comment’][‘count’] – number of comments
// print_r( $photo ) – for more parameters
}
$html .= ”;
echo $html;
}