Title: need code help
Last modified: August 22, 2016

---

# need code help

 *  Resolved [atomicmak](https://wordpress.org/support/users/atomicmak/)
 * (@atomicmak)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/need-code-help-1/)
 * Hi,
 * I have a galllery setup here
 * [http://www.wildart.in](http://www.wildart.in)
 * I have prettyphoto on my album pages here :
    [http://www.wildart.in/album/rufous-breasted-accentor/](http://www.wildart.in/album/rufous-breasted-accentor/)
 * Thing is someone click on image and it fetches large image in prettyPhoto.
    Now
   I want to replace that to load permalink of that image.
 * The code is here that loads up prettyphoto popup.
 *     ```
       <a href="<?php $img=get_sub_field('single_image'); echo $img;?>" class="lightbox" title="<?php  $size = getimagesize($img, $info);
       if(is_array($info)) {
       $iptc = iptcparse($info["APP13"]);
       //print_r(array($iptc));
       echo $iptc['2#120'][0]; } ?>" data-rel="prettyPhoto[1]">
       ```
   
 * Can anyone guide how can I replace so as the click on the thumbnail takes to 
   permalink of that image ?
 * Sorry I am not a programmer just wish to make little mod’s myself which my fried
   has designed for me.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Thread Starter [atomicmak](https://wordpress.org/support/users/atomicmak/)
 * (@atomicmak)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/need-code-help-1/#post-5704000)
 * done.

Viewing 1 replies (of 1 total)

The topic ‘need code help’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentytwelve/4.8/screenshot.png)
 * Twenty Twelve
 * [Support Threads](https://wordpress.org/support/theme/twentytwelve/)
 * [Active Topics](https://wordpress.org/support/theme/twentytwelve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentytwelve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentytwelve/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [atomicmak](https://wordpress.org/support/users/atomicmak/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/need-code-help-1/#post-5704000)
 * Status: resolved