WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Custom Fields
image not linking to url (5 posts)

  1. jannon
    Member
    Posted 2 years ago #

    I can't seem to get the images in my gallery to link. I installed this plugin and created a field called link. Then I edited the gallery.php by replacing

    <div class="ngg-gallery-thumbnail" >
    <a href="<?php echo $image->imageURL ?>"
    title="<?php echo $image->description ?>"
    <?php echo $image-<thumbcode ?> >
    
    <img title="<?php echo $image->alttext ?>"
    alt="<?php echo $image->alttext ?>" src="<?php echo $image->
    thumbnailURL ?>"
    <?php echo $image-<size ?> />
    
    			</a>
    		</div>

    with

    <div class="ngg-gallery-thumbnail" >
    <a href="<?php echo $image->ngg_custom_fields["Link"]; ?>"
    title="<?php echo $image->description ?>"
    <?php echo $image->thumbcode ?>  >
    <img title="<?php echo $image->alttext ?>"
    alt="<?php echo $image->alttext ?>" src="<?php echo $image->
    thumbnailURL ?>"
    <?php echo $image->size ?> /></a>
    
    <a href="<?php echo $image->ngg_custom_fields["Link"]; ?>">
    <?php echo $image->alttext ?>
    		</div>

    Then I entered http://www.whidbeyartsource.com/members/suetaves into the Link field but when I go to the slideshow and click on the image, it's just progresses to next image in the slideshow and doesn't go to the link.

    What do I need to do?

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

  2. shauno
    Member
    Plugin Author

    Posted 2 years ago #

    You need to be sure you are editing the correct gallery template. The gallery.php is the default template, and will not be used for the slideshow.
    I think the default slide show isn't even a template, but actually coded into the plugin.

  3. jannon
    Member
    Posted 2 years ago #

    ah, I see now. Thanks.

  4. rain
    Member
    Posted 2 years ago #

    I wanted to post on the previous thread which describes how to apply the hack to a specific gallery. It works like a charm. Thank you very much for your time!! I really really appreciate you.

  5. shauno
    Member
    Plugin Author

    Posted 2 years ago #

    I'm glad to hear the plugin helped you, and thanks for taking the time to let me know :)

    [ Signature moderated. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic