Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author shauno

    (@shauno)

    So you have the custom fields in the ‘manage gallery’ screen, and you have saved data in the fields fine?
    Then what shortcode are you using to display your gallery in the page?

    Thread Starter PReno

    (@preno)

    Yip i have it appearing in the manage gallery screen. I have tryed using the code http://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/ but it was to no avail so while search for answer i came across this piece of code

    <!-- Thumbnails -->
    	<?php foreach ( $images as $image ) : ?>
    
    	<div id="ngg-image-<?php echo $image->pid ?>" class="ngg-gallery-thumbnail-box" <?php echo $image->style ?> >
    		<div class="ngg-gallery-thumbnail" >
    			<a href="<?php echo $image->ngg_custom_fields["Link"]; ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
    				<?php if ( !$image->hidden ) { ?>
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    				<?php } ?>
    			</a>
    		</div>
    	</div>

    I cant see where short code is sorry. The website is http://www.sligotourism.ie/

    Plugin Author shauno

    (@shauno)

    That code assumes your custom field is called “Link”, is that what you have called your custom field?
    What page is the gallery on your site, so I check if I see anything wrong.

    Thread Starter PReno

    (@preno)

    Yeah i made sure that i had everything named the same. It is the main page all the image with the # when clicked should bring you to a site.

    Plugin Author shauno

    (@shauno)

    That slider is not generic NGG functionality. I see it’s using a 3rd party add-on called ‘NivoSlider’. The instructions in the NGG Custom Fields FAQ (and Kim’s site) are for linking the thumbnails in the default gallery view.

    I am not familiar with NivoSlider, so I will need to get it installed on a test site and see if linking the slides is possible. I will have a look at it when I get some time.

    Plugin Author shauno

    (@shauno)

    Hi again PReno

    I just had a chance to have a quick look at NivoSlider. It looks like you can just add the URL to the alt text input for each image. You just need to make sure to structure the link as a link, eg use “http://…&#8221;.
    You don’t even need NGG Custom Fields for this.

    I hope that helps 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Links not working’ is closed to new replies.