Quantcast
Channel: Active questions tagged instafeedjs+jquery+javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 32

Instafeed filter data into different divs

$
0
0

I have 4 divs & I want to show 20 results as below:

Div 1 - first 5 feeds

Div 2 - next 5 feeds (exclude first 5)

Div 3 - next 5 feeds (exclude first 10)

Div 4 - next 5 feeds (exclude first 15)

HTML

<ul id="instafeed2" class="instafeed slides"></ul>
<ul id="instafeed3" class="instafeed slides"></ul>
<ul id="instafeed4" class="instafeed slides"></ul>
<ul id="instafeed5" class="instafeed slides"></ul>

JS

var feed = new Instafeed({
        get: 'user',
        userId: userId,
        accessToken: 'accessToken',
        limit:10,
        template: '<li><a href="{{link}}" target="_blank"><img src="{{image}}" /></a></li>',
        resolution: 'standard_resolution',
        target: 'instafeed2',
    });

feed.run();

Plugin url : http://instafeedjs.com/ Instafeed

I am able to fetch result but unable to split them.

Please suggest.


Viewing all articles
Browse latest Browse all 32

Trending Articles