OK, I'll try again. I'm trying to make a page outside of Zenphoto that shows the last ten albums and then use php include to add that page to my WordPress sidebar.
I've tried using plugins and many didn't work.
Here's what I have so far: http://gregschultz.net/gallery.php
With this code:
'<?php
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'gallery');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
header ('Content-Type: text/html; charset=' . getOption('charset'));
?>
<div id="albums">
<?php while (next_album()): ?>
<div class="album">
<a>" title="View album: <?php echo getAlbumTitle();?>">
<?php printAlbumThumbImage(getAlbumTitle()); ?>
</a>
<div class="albumdesc">
<h3><a>" title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumTitle(); ?></a></h3>
<p><?php printAlbumDesc(); ?></p>
</div>
</div>
<?php endwhile; ?>
</div>'
It displays all of my albums.
With this code:
'<?php
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'gallery');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
header ('Content-Type: text/html; charset=' . getOption('charset'));
?>
<div id="albums">
<?php while (next_album()): ?>
<a>" title="View album: <?php echo getAlbumTitle();?>">
<?php printAlbumThumbImage(getAlbumTitle()); ?>
<?php printAlbumTitle(); ?>
<?php printAlbumDescAlt(); ?>
</a>
<?php endwhile; ?>
</div>'
It displays the first album only.
I'm not familiar with PHP programming so this is why I'm asking for help.
Thanks,
Greg