Random Content Display

Hi Everyone,

This is my first post here, and firstly as I’m slowly learning how to code a template, I want to express my appreciation for this forum. So far it has been incredibly helpful, especially for beginners like myself.

I have a question about displaying content randomly on a page. I have a collection of pictures, short text, and audio that I would like to display in a random order.

Ideally, I would like the content to change each time someone visits the page. However, I have read that this can cause issues with caching. If that’s the case, would it be possible to have the content order change every 24 hours or weekly instead?

I understand that the second option could be done manually, but I would be very grateful if someone could point me in the right direction for automating this process.

Thank you in advance!

Vincent