3
I’m using the instafeed.js API. I wanted instead of all photos appearing in the same div to appear one per div. I tried to use this example but it didn’t work: example instafeed.js on multiple Ivs, create multiple instafeed instances, one for each div. Any ideas?
instafeed:
var feed = new Instafeed({
target: 'instafeed1',
get: 'tagged',
tagName: 'pizza',
clientId: '*******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed2',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed3',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed4',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed5',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
var feed = new Instafeed({
target: 'instafeed6',
get: 'tagged',
tagName: 'pizza',
clientId: '******',
limit: 1
});
instafeed1Feed.run();
instafeed2Feed.run();
instafeed3Feed.run();
instafeed4Feed.run();
instafeed5Feed.run();
instafeed6Feed.run();
HTML:
<div id="where1">
<div></div>
<div id="instafeed1"></div>
<div id="instafeed2"></div>
<div id="instafeed3"></div>
<div id="instafeed4"></div>
</div>
<div id="where5">
<div></div>
<div></div>
<div></div>
<div></div>
<div id="instafeed5"></div>
<div id="instafeed6"></div>
</div>
In the plugin website has a "Templating" section. Have you tried using that?
– Lucas
It doesn’t work, I don’t think it’s good for this
– Miguel
Sorry @Ucas, you were right. Obgado
– Miguel