-
Notifications
You must be signed in to change notification settings - Fork 862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit:1, SortBy:random - always returns same image #8
Comments
Hey! Thanks for bringing this up. It's not really a bug, it's actually just the way Instafeed.js was built: While the The If you want to have just 1 random image, I would suggest raising the For example you could pass a function into the var feed = new Instafeed({
limit: 20,
sortBy: 'random',
// other stuff
after: function () {
var images = $("#instafeed").find('a');
$(images.slice(1, images.length)).remove();
}
}); This will remove all the children from |
Ok, I understand. Thanks for the explanation, I'll use your example in my implementation. |
Not sure if a bug or my settings:
var userFeed = new Instafeed({ get: 'user', userId: xxx, accessToken: 'xxx', template: '<div id="instaHeader" class="instaHeader" style="background-image:url({{image}});height:'+windowHeight+'px;"></div>', links: false, sortBy: 'random', limit: 1, resolution: 'standard_resolution' }); userFeed.run();
The text was updated successfully, but these errors were encountered: