I'm looking at the info in the link you give and at the code of template-functions.php. I see:
/**
* Returns the number of images in the album.
*
* @return int
*/
function getNumImages() {
global $_zp_current_album, $_zp_current_search;
if (in_context(ZP_SEARCH)) {
return $_zp_current_search->getNumImages();
} else {
if ($_zp_current_album->isDynamic()) {
$search = $_zp_current_album->getSearchEngine();
return $search->getNumImages();
} else {
return $_zp_current_album->getNumImages();
}
}
}
/**
* Returns the count of all the images in the album and any subalbums
*
* @param object $album The album whose image count you want
* @return int
* @since 1.1.4
*/
function getTotalImagesIn($album) {
global $_zp_gallery;
$sum = $album->getNumImages();
$subalbums = $album->getSubalbums(0);
while (count($subalbums) > 0) {
$albumname = array_pop($subalbums);
$album = new Album($_zp_gallery, $albumname);
$sum = $sum + getTotalImagesIn($album);
}
return $sum;
}
====== NOT ALL THE SLASHES AND STARS COPY OVER FROM THE ACTUAL CODE!!!!!========
in the file but don't see either showing on the Gallery pages for each album.