• Resolved MitchGusdal

    (@mitchgusdal)


    Hi there,

    Just installed the plugin, and for the most part it’s working great. However, I’m having trouble getting it to show random photos. I have “Sort Photos By = Random” selected in the plugin settings, and have sortby=random typed into the shortcode that I”m using to place the plugin in the sidebar.

    Please let me know if there’s a way to make it show random photos from my feed instead of in chronological order.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    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!

    Thread Starter MitchGusdal

    (@mitchgusdal)

    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.

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    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!

    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not showing random photos’ is closed to new replies.