Random text or images (or random anything else)

How can I have a photo, some text, links or anything else changing on pageload so every time the page is reloaded the image or text changes randomly?

Try reloading this page a few times and you will see that this photo here will change at random or shuffle each time you reload the page...

Same for this text:

Of course the more possibilities you add in the code the higher the probability it will display something else every time the page is loaded.

Having a photo, some text, links or anything else which changes every time the page is loaded is really easy. The good thing is that to visitors visiting your website from time to time it will look like you updated the website since the last time even if you didn’t. For more regular visitors it’s nice to have something changing from time to time. Also you can use it to point people to different pages randomly since every image can be linked to a particular page if you want (different photo galleries, pages you recently updated and more).

How this is done and how to add it to your theme is described in my WordPressFAQ.org E-Book (15$) (sample)


WordPressFAQ.org - Tutorials, Tips & Tricks is made with and for WordPress.
It's an EBookStoretoday.com company. It’s presented by Cédric and hosted by HostExcellence.com

I would like you to give me feedback on this page by commenting in the appropriate section of the Forum. Tell me if it's been helpful. If it wasn’t please tell me why. If you think something is missing please tell me what. If you have questions about it post them there and I will probably try to give you an answer.

Thank you for visiting and supporting my website,
- Cédric -



Share
This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.