My gallery has several albums some of them contain
subalbums. I want to list on a single page all my albums and subalbums if they contain any. Please can someone advise me on the code I need to do this.
Using the "album loop" I can list my albums:
`<?php while (next_album()): ?>
<?php endwhile; ?>`
How do I modify this code to capture and list the albums and subalbums as well?
Comments
` <?php $allalbums = getAllAlbums();<br />
$count = count($allalbums);
for ($i = 0; $i < $count; $i++)
{
$thisalbum = $allalbums[$i];
$albumobject = new Album($_zp_gallery,$thisalbum);
makeAlbumCurrent($albumobject);
echo getBareAlbumTitle() ;
}
?>
`