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: :)
Likes: 11
Comment count: 1
Photo id: 536783876_15497995
Next Max ID: 1330728635311

Photographer: Carina, la_lalalika

2: With a face like that, he can get away with anything. #toocute ;p
Likes: 11
Comment count: 1
Photo id: 553005463_15497995
Next Max ID: 1330728635311

Photographer: Carina, la_lalalika

3: 外の様子が気になる #cats #ねこ #cat
Likes: 15
Comment count: 0
Photo id: 138241718101959867_9161752
Next Max ID: 1330728635311

Photographer: abemariajp, abemariajp
