Media tagged 'cats' on Instagram
Get a list of recently tagged media.
Sample EE template code:
{exp:ig_picpuller:tagged_media user_id='1' limit='3' max_id='{segment_3}' tag='cats' use_stale_cache='yes'}
{if ig_status == 'true'}
<h2>{count}: {ig_caption}</h2>
<p>Likes: {ig_likes}</p>
<p>Comment count: {ig_comment_count}</p>
<h3>Photo id: {ig_media_id}</h3>
<h4>Next Max ID: {ig_next_max_id}</h4>
<p><img src="{ig_profile_picture}" alt='Photo of {ig_full_name}'/></p>
<p>Photographer: {ig_full_name}, <em>{ig_username}</em></p>
<p><img src="{ig_low_resolution}" alt="Low rez of image {ig_caption}" width="306" height="306" /></p>
<p><a href="{ig_link}">See the photo on Instagram.</a></p>
{if ig_next_max_id != ''}
{if count == total_results}
<!-- Note that /code/ in the line below refers to template group this template lives in -->
<a href="/index.php/code/media_by_tag/{ig_next_max_id}">Next set »</a>
{/if}
{/if}
{/if}
{if ig_status == 'false'}
<p>ERROR TYPE: {ig_error_type}</p>
<p>ERROR MESSAGE: {ig_error_message}</p>
{/if}
{/exp:ig_picpuller:tagged_media}
Resulting rendered HTML:
1: #cats
Likes: 16
Comment count: 0
Photo id: 184215257301466787_3452638
Next Max ID: 1336205384104

Photographer: elizabeth 🌸, elizabetharia

2: Cat eye
Likes: 8
Comment count: 5
Photo id: 184195657266117090_26310269
Next Max ID: 1336205384104

Photographer: Sarah, mme_sage
