Title: manimac's Replies | WordPress.org

---

# manimac

  [  ](https://wordpress.org/support/users/manimac/)

 *   [Profile](https://wordpress.org/support/users/manimac/)
 *   [Topics Started](https://wordpress.org/support/users/manimac/topics/)
 *   [Replies Created](https://wordpress.org/support/users/manimac/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/manimac/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/manimac/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/manimac/engagements/)
 *   [Favorites](https://wordpress.org/support/users/manimac/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[nextgen gallery] link the releted photo to the gallery page](https://wordpress.org/support/topic/nextgen-gallery-link-the-releted-photo-to-the-gallery-page/)
 *  [manimac](https://wordpress.org/support/users/manimac/)
 * (@manimac)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/nextgen-gallery-link-the-releted-photo-to-the-gallery-page/#post-1391603)
 * hey surfebloggy!
 * try with:
 *     ```
       // *** build the gallery output
           $out   = '<br><h3>Related Images</h3><div class="ngg-related-gallery">';
           foreach ($picturelist as $picture) {
   
               // get the effect code
               $thumbcode = $picture->get_thumbcode( __('Related images for', 'nggallery') . ' ' . get_the_title());
   
               $out .= '<a href="/about/showcase?album=all&gallery=' . $picture->galleryid . '" title="' . stripslashes(nggGallery::i18n($picture->description)) . '" ' . $thumbcode . ' >';
               $out .= '<img title="' . stripslashes(nggGallery::i18n($picture->alttext)) . '" alt="' . stripslashes(nggGallery::i18n($picture->alttext)) . '" src="' . $picture->thumbURL . '" />';
               $out .= '</a>' . "\n";
           }
           $out .= '</div>' . "\n";
       ```
   
 * where /album/showcase is the path for gallery page, you have to put your path
   
   hope it works for you bye

Viewing 1 replies (of 1 total)