Ready to get started?Download WordPress


NextGEN Galleryview with Album beneath (3 posts)

  1. 72quadrat
    Posted 4 years ago #

    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!

  2. 72quadrat
    Posted 4 years ago #

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

  3. lht
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.