• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Random Image for Image Gallery pic

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Random Image for Image Gallery pic

This topic is: not resolved

Tagged: image gallery, product catalog, Rotating images

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 2 months ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 27, 2014 at 5:08 pm #97017
    AstroLass
    Member

    Hi -

    I have a six photo Image Gallery implemented. Does anyone know there is a way to make ONE of the images rotate through a selection? I have a product catalog, and would like to make ONE of the six images in the Image Gallery display, randomly, a different product from my catalog.

    Ideas? Thoughts?

    Thanks zillions for everyone's help.

    Sandy
    Website down for maintenance and overhaul, but I think you all probably know what an Image Gallery looks like.

    http://www.sandyeulitt.com
    April 2, 2014 at 12:16 am #98024
    Tom
    Participant

    Sandy,

    I know what an Image Gallery looks like but admit to being a little baffled by your question 🙂

    What is the starting point? i.e.
    Is the gallery related to the product? 1:1?
    Is the gallery made of images of a product of which one image is to be randomly displayed on the same products' page?
    Did you want to randomly display one of six images per product in some other way?
    One gallery only, or six(+/-) images per gallery?
    What happens with the image? Does it link to something? or just display on the page? or display in a lightbox?

    Perhaps some more detail on your use-case?


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    April 2, 2014 at 5:35 pm #98174
    AstroLass
    Member

    Hi Tom -

    Thanks for your reply. OK, let me see if I can answer some of your questions.

    So, I have an image gallery implemented. There are six images in the gallery, three on each of two rows. Each image has a caption. Five of the six images are absolutely static. Ideally, the sixth image, the one captioned, "Shop," will be DYNAMIC. I have several different products, and would like to make it possible for my products to RANDOMLY display an image in the sixth placeholder of my image gallery. For example, my products might be jewelry, water bottles, travel mug, and apparel. I want some means of randomly displaying each different product in the "Shop" placeholder in the image gallery. Say I have eight products. Those eight would cycle through being displayed in the one Shop placeholder of my six-placeholder image gallery. When the image is clicked on, it takes visitor to that product and/or my entire product catalog. Does this make more sense?

    I forget what a lightbox is, but I don't think I am planning to implement one.

    Does this help?

    Thanks,

    Sandy

    April 3, 2014 at 6:02 pm #98378
    Tom
    Participant

    (Basically, a lightbox is the frame that pops up to show the gallery image.)

    What you are describing is a 5-picture gallery, displayed with another, random image from another source. You might be able to find a plugin that will serve up a random image. But what you seem to really want is a random product link with a featured image/thumbnail image.

    I think this is something you will either need to code yourself or investigate what your product catalog/eshop plugin can deliver.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble