Hello,
Generally, in album's page, the first page is for sub-albums and the follow pages are for the images. All the themes I've tried works like this.
Is it possible to have the sub-albums (maybe one or two) AND the first images on page 1 of the album's page ?
I'm using the 2 loops
while (next_album()):
while (next_image()):
Thanks Acrylian, I've found this option.
But it does not exactly do what I want.
My theme is 4 thumb per line, 2 lines per page. (same for album or image)
if sub-albums =< 4,
I want the sub-albums on the first line, and the first image in the second line
if sub-albums =< 8,
I want the sub-albums on the first page, and the first image in the second page
...
In other word, I want mixed album/image but with a "Carriage Return" ( or a < br / > ) after the last sub-albums.
Ok, if you had said that at the beginning. As you noted yourself both are printed by separate loops, so add something after the album loop. You might either need to change the css and/or html. I can't answer that for you as it is your theme apparently.
If you want the shared page depending on the number of subalbums, you need to set the options depending on that. You can set any option using setOption() on the theme directly to override admin settings. Please review the functions documentation on the exact parameters.