NextGEN Gallery
Random image (3 posts)

  1. emanuelle
    Posted 2 years ago #

    Does this plugin has the ability to have a random image with title on my pade(not widget). on every refresh a new image will show from a specific gallery
    like this


  2. smigliorato
    Posted 2 years ago #

    There's a shortcode for that!

    [random max=* id=* template=*]

    Because it's a gallery, it will only show thumbnails. It will also split up into pages based on the setting in Gallery->Options on the "Gallery" tab "Number of images per page".

    As to its usage:

    max is required, and will be the number of random images you want to display.

    id is optional. If you don't include it, it will pull random images from all of your galleries. If you include it, it will only take images from that gallery. You can only specify one gallery.

    template allow you to use some of the other gallery templates like caption.

    Example with 6 images from from the gallery with id 3:

    [random max=6 id=3]

    Example with 4 random images from all galleries with captions from the caption template:

    [random max=4 template=caption]

    Have fun and let me know if that works out for you.

  3. emanuelle
    Posted 2 years ago #


    unfortunately it doesnt work
    if I add [random max=4 template=caption] this code will be shown on my page
    if I add
    [random-image max=4 template=caption] it will work ut without the caption
    I appreciate your help

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.