Support » Plugin: NextGEN Custom Fields » Custom link in widget issue

  • Hi,

    I have tried to follow the other posts on this forum to solve the issue but it wont work.

    I want to add a link so when someone clicks on an image from a widget it takes them to the link. I have tried using both the image and gallery options with this plugin.

    I also want this to be added to the widget so I have added the following code to this file: wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/widget/templates/display_gallery.php

    <?php foreach ($images as $image) { ?>
            <a href="<?php echo nggcf_get_field($image->pid, "link"); ?>"
               title="<?php echo esc_attr($image->description)?>"
               data-image-id='<?php echo esc_attr($image->pid); ?>'...

    The link just wont work on the front end…
    I have also tried with the gallery php code. I cant seem to get it to work.

    demo site is here

    Any help?


  • The topic ‘Custom link in widget issue’ is closed to new replies.