I am trying to figure out how to use the code posted by Nicholas Lim in Random images on click to display random post when page refreshes.
I am using wordpress for my website, the url structure does not contain .php extension. So i won’t be able to use it to display random image in my WP post, am i right?
If it is possible, could anyone please guide me step by step how to use the code.
I spent much time reading about this, but still haven’t understood.
Thank you in advanced
Not 100% sure what your requirements are here.
Is this correct:
1. You want to display random images on a page refresh.
2. You’re not running a php server.
If yes to both of the above, then why not just use the JavaScript example from the post that you have included in your original question?