Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

NextGen Slideshow - Can you link it to a page? WordPress

Hi Guys

I have installed NextGen Gallery plug in and am using it to create a slideshow in each of the four boxes on this site http://www.surreycurtains.com.

I want each slideshow to link to a relevent page.

Many thanks
Steve

Answers (4)

2011-07-30

Ehthisham tk answers:

[[LINK href="http://j3webworks.com/blog/how-to-make-nextgen-smooth-gallery-link-to-any-url-or-fake-a-flash-banner"]]http://j3webworks.com/blog/how-to-make-nextgen-smooth-gallery-link-to-any-url-or-fake-a-flash-banner[[/LINK]]

2011-07-30

Romel Apuya answers:

can you post the code on how are you displaying the gallery?

2011-07-31

Nicole Rork answers:

http://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/

2011-07-31

Christianto answers:

Hi Steve,

I think its not possible to get link for each image..

Looking at the source code, you are using this function right?
<?php echo nggShow_JS_Slideshow($galleryID, $width, $height) ?>

With this function, nextgen plugin developer create the slideshow including the js initialize code and fetch the image to the page using ajax. We can see loading image before the slideshow start.. :D

You can see the ajax code in nextgen-gallery/js/ngg.slideshow.js and the php function to return the db query from ajax request in /nextgen-gallery/xml/json.php, where you can see on line 89 it connected with get_gallery function in nggdb class within /nextgen-gallery/lib/ngg-db.php line 216.

In js we could alter it so it will include the link but as you can see it from the ajax request in only return image address to be used within the slideshow, thus there are no page url or other data that that we can use to point the image to correct address.

Its not an easy task to do it, it might get error in client site, since default structure will be use by the slideshow plugin (jQuery Cycle) or error server side itself.

Hope this help.