Title: Inserting into template with rel
Last modified: August 21, 2016

---

# Inserting into template with rel

 *  Resolved [mfal55](https://wordpress.org/support/users/mfal55/)
 * (@mfal55)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/inserting-into-template-with-rel/)
 * I have a template generating a loop that includes links which open into a lightbox.
   I switched to this simple-lightbox due to it’s capability of displaying descriptions
   on the lightbox. This works great on my wordpress gallery, however, I can’t seem
   to figure out how to trigger the lightbox within a template through the typical,
   standard, rel=”group” tag. Can you advise? I even purchased your video upgrade
   thinking it would work and it doesn’t.
 * [https://wordpress.org/plugins/simple-lightbox/](https://wordpress.org/plugins/simple-lightbox/)

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

 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/inserting-into-template-with-rel/#post-4795178)
 * Hi, SLB provides more robust media support (e.g. displaying descriptions from
   the media library) and thus does not use the `rel` attribute. If Please post 
   the loop you are using so I can get a better idea of what you’re trying to do.
 * Also, if you’re experiencing an issue with the video add-on beta, you can request
   support from the [Video add-on’s beta page](http://archetyped.com/lab/slb-video-addon-beta/)
   for your issue.
 *  Thread Starter [mfal55](https://wordpress.org/support/users/mfal55/)
 * (@mfal55)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/inserting-into-template-with-rel/#post-4795242)
 * Hi there – I’m essentially just trying to trigger the lightbox from my href, 
   see the link to vimeo below:
 *     ```
       <?php
       $videoID = get_field('video_id');
       $jsonurl = 'http://vimeo.com/api/v2/video/'.$videoID.'.json';
       $json = file_get_contents($jsonurl,0,null,null);
       $json_output = json_decode($json,true);
       echo '<a href="http://vimeo.com/'.$videoID.'" rel=”lightbox-n”><img src="'. $json_output[0]['thumbnail_large'] .'" /></a>';
       ?>
       ```
   
 * in the previous lightbox plugin I was using, all I needed is the rel=”group-name”
   but it doesn’t seem to be that simple with this. Any advice?
 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/inserting-into-template-with-rel/#post-4795268)
 * Simple! Just replace your echo statement with the following:
 *     ```
       echo slb_activate('<a href="http://vimeo.com/'.$videoID.'"><img src="'. $json_output[0]['thumbnail_large'] .'" /></a>');
       ```
   
 *  Thread Starter [mfal55](https://wordpress.org/support/users/mfal55/)
 * (@mfal55)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/inserting-into-template-with-rel/#post-4795280)
 * thanks so much! this worked. how do I get it to click through a group? is this
   possible?
 *  Plugin Author [Archetyped](https://wordpress.org/support/users/archetyped/)
 * (@archetyped)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/inserting-into-template-with-rel/#post-4795303)
 * Yes, enabling grouping in SLB’s settings will add it to the global group.

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

The topic ‘Inserting into template with rel’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-lightbox.svg)
 * [Simple Lightbox](https://wordpress.org/plugins/simple-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-lightbox/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Archetyped](https://wordpress.org/support/users/archetyped/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/inserting-into-template-with-rel/#post-4795303)
 * Status: resolved