Support » Themes and Templates » Particular Random Image

  • Hi to everyone.
    I have just installed the last wp release and i found it very interesting.
    Now i’m trying to customize the “travelogue” theme found at

    I would like to know how it’s possible to realize a small script to generate a random image of the polaroid on the top left of the screen.
    I just want to prepare 5 or 6 “polaroid” changing every time that i refresh the page.

    Have you got any suggestion?


Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s fairly simple. Find someone who can code in PHP to make you a tiny <php> that pulls a random number between 1 and X and echoes it. Then find where the image is located in the template and change it with < img src=”title-< ?php instertscripthere; ?>.jpg” > and you will get each time a title from title-1.jpg to title-X.jpg.

    I’m using the Automatic Image Rotator on my Blog wich is really simple to use.

    Glad to know you’re testing out the theme! Per your suggestion, I added support for that this morning. Go to to download the newest version.

    It simply relies on using a randomized CSS class to pull an image, so you will need to create your images, edit the CSS file, and edit one line in the header.php file. Don’t worry, detailed instructions are included in the readme and CSS files. 😉


    Tnx for your consideration. Your suggestions were really helpful for me.
    And tnx to Josh for the new realease!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Particular Random Image’ is closed to new replies.