Member
Member
Epsilon   2016-02-07, 23:31
#1
Hi

On pages where album thumbnails are displayed (gallery page, search page etc.) I would like to display the number of sub-albums that each album contains.

What would be the best way to get this information for each album?
Administrator
Administrator
fretzl   2016-02-08, 09:01
#2
Inside the [i]while (next_album()[/i] loop place a call to `getNumAlbums()` where you want the number to appear, like this:

`
<?php while (next_album()): ?>
..........
...........
<?php echo getNumAlbums(); ?>
...........
...........
<?php endwhile; ?>
`
Member
Member
Epsilon   2016-02-08, 23:24
#3
Exactly what I was looking for, thanks for the help Smile
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.