NextGEN Galleryview with Album beneath
-
The NGG-Template-Functions are perhaps not suitable if you want to put an album-overview on your Gallery-Page. I needed to make a special WordPress page-template which checks if the current page which shows the gallery-view is a sub-page of my album-page to do ist. I putted the following code in my
page.php
template:$ancestors = $post->ancestors; foreach ($ancestors as $parent) { if ($parent == 87) { //87 is my album-page echo '<h3>more galleries title</h3>'; echo nggShowAlbum(1, $template = 'compact'); } }
If i put the same code
echo nggShowAlbum(1, $template = 'compact');
in mygallery.php
template file i just won’t show up!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘NextGEN Galleryview with Album beneath’ is closed to new replies.