• My goal: to show all galleries on one page on which each gallery link will direct the user to my custom gallery template.

    How I did it: [album id="0" template="nesn" gallery="nesn"]

    First Problem: The pagelink property for each gallery does not include the gallery’s slug or ID number:

    [2] => stdClass Object (
    [gid] => 2
    [name] => tmz-cougars
    [slug] => tmz-cougars
    [path] => wp-content/gallery/tmz-cougars
    [title] => TMZ Cougars
    [galdesc] => A collection of cougars according to TMZ.
    [pageid] => 160
    [previewpic] => 24
    [author] => 1
    [counter] => 12
    [previewname] => wendy2.jpg
    [previewurl] => http://local.nesn.wordpress.dev/wp-content/gallery/tmz-cougars/thumbs/thumbs_wendy2.jpg
    [pagelink] => http://local.nesn.wordpress.dev/nextgen-gallery-sandbox/gallery
    )

    Second problem: Appending the gallery slug to the end of the pagelink property in the view template creates a valid link, however, because the page is using the album shortcode, the function nggShowAlbum() is called again and dies with the message [Album not found]. I know this is because there is no value in get_query_var('gallery')

    Solution: My current fix is to assign the $album value to $gallery in the function nggShowAlbum(). This works because the value of $album is really a gallery, but it isn’t ideal.

    Also, I’m not linking any album or gallery to a WordPress page.

    Am I doing something wrong here?

    http://wordpress.org/extend/plugins/nextgen-gallery/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Showing all Galleries Issue’ is closed to new replies.