I'm running a script on my index.php page to find albums tagged with the word "featured" but the script doesn't seem to grab the sub-albums that are tagged. Is there a way to check the sub-album tags along with the top level albums?
`<?php while (next_album()): ?>
<?php $check = getTags();<br />
$check = substr_count($check,"featured");
if ($check == 1) { ?>`
`
`
`
<?php printAlbumDate(""); ?> <?php printAlbumDesc(); ?>`
`
`
`
`
`<?php } else {;}?>
<?php endwhile; ?>`
--> Thanks to BertSimons for writing the original script.
Comments
And take a look at the functions guide: www.zenphoto.org/documentation
I found the function `getAllTags()`, but it didn't seem to pull anything.
"Returns a list of tags for either an image or album, depends on the page called from"
So this returns the tags of the current image or album. If you want all tags used in your gallery use printAllTagsAs()