Support » Plugin: FooGallery - Image Gallery WordPress Plugin » Random Image from galeries or album

  • Resolved groovet

    (@groovet)


    Hi there,

    at first: very nice gallery!
    Is there a possibility to get a/one random image from a gallery oder an album?
    Like: [foogallery id=”?” sort=”data_desc” limit=”1″]

    Thank you and greets
    groovet

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author bradvin

    (@bradvin)

    hi groovet,

    You can use sort=”random” to show a random image in the gallery

    Hi bredwin, thank you for your answer. I saw this possibility in the Dokumentation. My idea is to use one random image as a widget out of all galleries or at least from a whole album including a link but I do not know how to code that idea.
    Thanks!

    Plugin Support phillcoxon

    (@phillcoxon)

    Just to clarify – you’d like to use a random image in a widget that will open an album of galleries and you’d like the image to be random from any one of the contained galleries?

    Hi phillcoxon,

    yes, that is correct. I had that in our old “gallery3” an it was nice for the users.
    With the code [foogallery id="1234" sort="rand" limit=”1″] I have that effect, but only out of one specified gallery.
    The idea ist a code like [foogallery id="all" sort="rand" limit=”1″] or [foogallery id="album1234" sort="rand" limit=”1″]

    • This reply was modified 2 months, 2 weeks ago by  groovet.
    Plugin Support phillcoxon

    (@phillcoxon)

    Hi @groovet,

    Pulling a random image from multiple galleries or an album is not supported by the FooGallery shortcode at the moment. The FooGallery shortcode only works for a single gallery at a time right now.

    If you’d like it to be considered as a future feature you can add the suggestion as a comment on our roadmap Trello board: https://trello.com/b/ytuRRFdy/fooplugins-feature-requests.

    Please feel free to reach out again if we can help with anything else in the meantime.

    Thank you!

    sptoolsnordic

    (@sptoolsnordic)

    Random only works when you are logged in though?! I just found this out and posted a topic about it.

    That is not what I expected from random sort.

    It has to work for all viewers not just logged in admins.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.