Hi there.
I'm new here and have got a big problem, and I'll tell you the whole situation.
I've got a blog powered by Wordpress, with header photos I randomly use that other people have taken.
Due to the Wordpress file system, I've got the header.php archive, where I call (with include( )) a random.php file (which has the function rand( ) in it). I have no problem to insert a random file name, so different header images are displayed every time page is refreshed.
The problem is that I need to put the credits of the images (this Creative Commons thing...) in the footer.php file. What can I do to use the same randomly generated number in these two different files and include( ) them both in the index.php file that Wordpress require?
I've tried to include( ) random.php in header.php as in footer.php, but it generates two different random numbers, so image doesn't correspond with credits of that image.
Any help will be greatly appreciated.
Thanks in advance!
— Aldeasim.