WordPress.org

Support

Support » Plugins and Hacks » NextGEN Gallery - WordPress Gallery Plugin » [Resolved] [Plugin: NextGEN Gallery] Get gallery url

[Resolved] [Plugin: NextGEN Gallery] Get gallery url

Viewing 5 replies - 1 through 5 (of 5 total)
  • The gallery istelf didn’t have any URL, it will be instert into a post / page or multiple pages / posts

    But how to get the page url dynamic?. What I want to do is this:

    I have generated recent images on the frontpage. When a user clicked for example on image 1 and it pop-ups in lightbox I want there to show from wich gallery is the image and when the user clicked on that link to go to that gallery. Is there a way to do it?

    p.s. sorry for my english

    Not that easy, but possible for coder

    1. If you know the gallery id you can use $gallery->pageid
    2. with get_permalink() you can get the page url where the gallery points to (in the case you selected it)

    If you didn’t set the page in the gallery settings, there is no possibility to get this url without crawling all posts

    OK. Thanks, I’ll try it.

    Alex, i changed $gallery->pageid to $image->pageid and it works like a charm!!!
    Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: NextGEN Gallery] Get gallery url’ is closed to new replies.
Skip to toolbar