• 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 my gallery.php template file i just won’t show up!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 72quadrat

    (@72quadrat)

    O.K. but now i’ve done it in a different way to get the author id’s and such…

    i wanna do the exact same thing. Couldn’t sort it really out since it seems gallery.php has not the needed variables as there are $album and $galleries.

    How does it work at the end?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘NextGEN Galleryview with Album beneath’ is closed to new replies.