A Random Photo For Your Home Page

The home page of demo1 is becoming quite popular. If you think that displaying always the same photo on your homepage may become boring, you can create a specific album with all photos you want on your home page. Then, in your home page content, instead of writing:

<img src=”http://…./photo.jpg”>

you can write…

[random album=32]

… where 32 is the numeric identifier of the album. Piwigo will randomly pick a photo from this album. You need the plugin Extended Description to be active.

Random photo on your Piwigo.com home page, new photo on each refresh

Random photo on your Piwigo.com home page, new photo on each refresh

  • Note 1: The [random album=32] trick works in a PWG Stuffs personal block as well.
  • Note 2: you can mark the album as private if you want to hide it from your gallery

2 Replies to “A Random Photo For Your Home Page”

  1. HI
    sorry
    I dont understand what is the syntax

    [random album=32]

    dont works
    thanks for your help

    Reply

    1. You need to activate plugin Extended Description to make this syntax work.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.