Title: Customize link
Last modified: August 20, 2016

---

# Customize link

 *  Resolved [bl0c](https://wordpress.org/support/users/bl0c/)
 * (@bl0c)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/)
 * Firstly, a huge thank you for your great plugin!! I use it on all my sites.
    
   Please forgive me for my bad English because I’m French. I would like to customize
   a max your plugin to suit my needs. I tried to make each photo 3 buttons appear
   and leads to a custom link by the name of the image. You understand surment better
   with the code.
 *     ```
       echo '<a href="http://les-casques-jaunes.craft-web.com/skin/?user='.$name.'"><img src="wp-content/uploads/logo/bouton2.gif"></a>';
       echo '<a href="http://adf.ly/2566826/http://minecraft.net/profile/skin/remote?url=http://les-casques-jaunes.craft-web.com/wp-content/uploads/skin/'.$name.'.gif"><img src="wp-content/uploads/logo/bouton4.gif"></a>';
       echo '<a href="http://adf.ly/2566826/les-casques-jaunes.craft-web.com/wp-content/uploads/skin/'.$name.'.png"><img src="wp-content/uploads/logo/bouton3.gif"></a>';
       $name = $_GET['name'];
       ```
   
 * I do not really know the php code, but with a lot of research I finally found
   a solution that works. Unfortunately, when I add more photos, and the button 
   does not multiply the image currently visible.http :/ / hpics.li/a3e53ab
    How
   could adjust cares very annoying please? And would you know how to make links
   in the description is not up? Where placed?
 * Thank you for reading and hope you can/want to help me
    Bl0c, Cordially
 * [http://wordpress.org/extend/plugins/wp-photo-album-plus/](http://wordpress.org/extend/plugins/wp-photo-album-plus/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221260)
 * I do not really understand your problem, but:
 * You should put the links in the Description field in the Album admin -> Edit -
   > Manage photos -> description.
 * You must enter the links in HTML, you can NOT use php there.
 *  Thread Starter [bl0c](https://wordpress.org/support/users/bl0c/)
 * (@bl0c)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221261)
 * I use google translation is very bad English: p
    What I want is to save time 
   by using php to prevent repetitive actions and have a better flexibilitée.
 * For this I modify the source code and I want to display 3 logos for each image.
   
   When there is a picture, everything goes well, but as soon as I add pictures 
   logos are multiplying like here: [ So I would like that when I view an image 
   only the logos of the image in question is displayed.
 * Hoping to have been more clear …
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221273)
 * 1. Your english is MUCH better than googles translation.
 * 2. If you want to add programmatic code to each image description, add it in 
   the function wppa_get_slide_info() in wppa-functions.php.
 * 3.Find this code fragment: (line 996 in the current version)
 *     ```
       // Make photo desc, filtered
       if ( !$wppa['is_slideonly'] || $wppa['desc_on'] ) {
       	$desc = wppa_get_photo_desc($id);
       ```
   
 * either put your code befor or after the photo-desc. Assume your code is in $mycode
   do one of these two options:
 *     ```
       $desc = wppa_get_photo_desc($id) . $mycode;
       ```
   
 * or
 *     ```
       $desc = $mycode . wppa_get_photo_desc($id);
       ```
   
 * $mycode must contain html and or text
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221274)
 * Example:
 * $name = …
 * The name of the photo is here:
 *     ```
       $name = wppa_get_photo_name($id);
       ```
   
 * $mycode becomes something like this:
 *     ```
       $mycode = '<a href="http://les-casques-jaunes.craft-web.com/skin/?user='.$name.'"><img src="wp-content/uploads/logo/bouton2.gif"></a>'
       $mycode .= '<a href="..." etc...  </a>';
       $mycode .= '<a href="..." etc...  </a>';
       ```
   
 * Hope this helps you further
 *  Thread Starter [bl0c](https://wordpress.org/support/users/bl0c/)
 * (@bl0c)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221279)
 * If you see my English, you would take fear: p well I use google translation ^
   ^
    “Hope this helps you further” Of course! I will remerci infinitely I could
   put more pictures of 1000-2000, if I had to update the links manually, that would
   be a huge job and I just want to change the url, I’m done ^ ^ I really appreciate
   this support exeptionnel for a free plugin, if my site works well and adf.ly 
   brings me a lot, you’ll be the first to receive a donation.
 * Again a huge thank you and good luck for your plugin that I use on all my websites.
 * I have an idea for improvement if you’re interested, I’m not sure this is possible:
   Power inserted videos, just like a photo.
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221283)
 * Thanx. videos is a future development.
 *  [flobogo](https://wordpress.org/support/users/flobogo/)
 * (@flobogo)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221284)
 * hello / bonjour,
    Je m’adresse à bl0c en français … étant moi-même française 
   ^^ Le plugin est super pour les albums photos, mais je voudrais aussi l’utiliser
   pour insérer des photos au fil de mes pages. J’ai bien trouvé le code pour insérer
   une photo unique et même spécifier sa taille, mais je voudrais pouvoir mettre
   un lien pour que le visiteur clique et voie la photo en grande taille. Savez-
   vous comment faire un tel lien sur une photo avec WPPA ? Merci d’avance et désolée
   de “squatter” votre post 😉
 *  Thread Starter [bl0c](https://wordpress.org/support/users/bl0c/)
 * (@bl0c)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221286)
 * Créer un nouveau sujet en anglais, je peux pas d’aidé :p
 *  [flobogo](https://wordpress.org/support/users/flobogo/)
 * (@flobogo)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221287)
 * Ok, merci d’avoir répondu.
    J’ai créé un post en anglais …
 *  [helotes](https://wordpress.org/support/users/helotes/)
 * (@helotes)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221292)
 * Hi – I am also using this tool and like it but am unclear on how to make the ‘
   links’ function work. Here is what I am trying to do.
 * I have two photo albums. I need to have links to an external website in the full-
   sized description. I have typed in html code for the tag but the full-size image
   does not allow me to click on the link (cant hover over the caption) and when
   clicking on the full-size image itself, it opens a larger version of the image
   in which the html code appears to the viewer. *(but there is still no way to 
   click on the link and go to the external website)
 * Please advise me on the best way to do this — this is the only thing that is 
   missing to successfully use this plugin and I would really like to make it work.
   Seems like it should but I must be overlooking something in the settings?
 * Again, need to link the full-sized photo album image to an external website. 
   Here is the test page for reference:
 * [http://www.treehuggersurvival.com/beaart/test-galleries/?locale=en_US&wppa-album=4&wppa-cover=0&wppa-occur=1](http://www.treehuggersurvival.com/beaart/test-galleries/?locale=en_US&wppa-album=4&wppa-cover=0&wppa-occur=1)

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Customize link’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-photo-album-plus.svg)
 * [WP Photo Album Plus](https://wordpress.org/plugins/wp-photo-album-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-photo-album-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-photo-album-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-photo-album-plus/reviews/)

 * 10 replies
 * 4 participants
 * Last reply from: [helotes](https://wordpress.org/support/users/helotes/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/customize-link-1/#post-3221292)
 * Status: resolved