Hey MitchGusdal,
Glad it’s working great! We have this on our list of things to address but currently the random photos feature does not work well if you only have a few photos in your feed. Take a look at this FAQ for a workaround: https://smashballoon.com/random-sorting-doesnt-work-when-only-displaying-a-few-photos/
Let me know if you have more questions!
Thanks Craig. That workaround is doing the trick and showing a random photo now. Is there a side effect where the “load more” button stops working or did I enter something wrong?
I took the button down so I don’t have a dead button on my page. Let me know if you need it back up for troubleshooting.
Hey Mitch,
Ahh we should probably update that FAQ to work with the load more button now that you mention this.
In the mean time you could just replace your JavaScript with this:
jQuery('.sbi_load_btn').click(function(){
jQuery('#sb_instagram .sbi_item').css('display', 'inline-block');
jQuery('#sb_instagram.show1').removeClass('show3');
});
jQuery('#sb_instagram.show1 .sbi_item').slice(0,1).css('display', 'inline-block');
Did you just want to show one post initially? If so, the “slice(0,1)” part of the code will make it show just the first post.
This code will show all of your posts when the visitor clicks “load more” and not just one each time.
Let me know if you have more questions!
This thread has been quiet for awhile so I’m going to mark it as resolved. Let me know if you have more questions though!