How can i display recent photos on my homepage?
I was following this hacks from wiki:
`
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
$randomImage = getRandomImages();
$randomImageURL = getURL($randomImage);
echo "
getSizedImage(getOption('image_size')) .
"' alt=\"random image\"\n" . $randomImage->getTitle() .
'" />';
`
But i got a warning message:
`
Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/index.php:10) in /home/mysite/public_html/gallery/zp-core/functions.php on line 2025
`
What im doing wrong? I just want to show the most recent image from a specific album.
Any help please?
Peace
Comments
But, i could get any image at all.
What could be the problem?
Instead of showing a random image, is there an option to show the latest added image of any album?
Peace