Everything works right, and I have been spending weeks putting finishing touches on the gallery, and then I find it doesn't display anymore than 5 galleries on the index or archive page.
Frustrating to say the least.
I tried to tinker with the code but that doesn't do anything. Is it a CSS problem?
Why does it stop listing galleries at 5?
Comments
If you look at this code snippet:
<div class="galleries">
<h2>Recently Updated Galleries</h2>
<?php $counter = 0; while (next_album() and $counter < 6): ?>
" title="View album: <?=getAlbumTitle();?>" class="img"><?php printAlbumThumbImageStopdesign(getAlbumTitle()); ?>
<h3>" title="View album: <?=getAlbumTitle();?>"><?php printAlbumTitle(); ?></h3>
<?php $text = getAlbumDesc(); if( strlen($text) > 44) $text = preg_replace("/[^ ]*$/", '', substr($text, 0, 22))."…"; echo$text; ?> <? $number = getNumImages(); if ($number > 1) $number .= " photos"; else $number .=" photo"; echo$number; ?>
";}; $counter++; endwhile; ?>
<p class="mainbutton"><h3 class="big">View all Galleries</h3></div>
You notice that Stopdesign uses a counter on the front page to only show the first 6 albums. Now if your zp_config is set to default 5 albums, your display will only show 5 albums.
You can modify the number of albums per page by modifying the zp_config file. Mine is set to six, which I've found for most themes works well. Stopdesign works best set to 6. My Thinkdreams theme is a derivation of Stopdesign.
// Paging options:
// Control of their display is done in the theme, so you might need to change these
// after switching themes to make it look better.
$conf['albums_per_page'] = 6;
$conf['images_per_page'] = 6;
Thanks very much, I appreciate it!
<path-to-your-installation>/zp-data/zenphoto.cfg
Some reading: `http://www.zenphoto.org/news/installation-and-upgrading`.
Why did you post in a 5 year old thread ?