[Plugin: NextGEN Gallery] Showing all Galleries Issue
-
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] => https://local.nesn.wordpress.dev/wp-content/gallery/tmz-cougars/thumbs/thumbs_wendy2.jpg
[pagelink] => https://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 thealbum
shortcode, the functionnggShowAlbum()
is called again and dies with the message[Album not found]
. I know this is because there is no value inget_query_var('gallery')
Solution: My current fix is to assign the
$album
value to$gallery
in the functionnggShowAlbum()
. 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?
https://www.ads-software.com/extend/plugins/nextgen-gallery/
- The topic ‘[Plugin: NextGEN Gallery] Showing all Galleries Issue’ is closed to new replies.