Title: [Plugin: add-rel-lightbox] Disable Groups
Last modified: August 20, 2016

---

# [Plugin: add-rel-lightbox] Disable Groups

 *  Resolved [cwendt01](https://wordpress.org/support/users/cwendt01/)
 * (@cwendt01)
 * [14 years ago](https://wordpress.org/support/topic/plugin-add-rel-lightbox-disable-groups/)
 * This is almost exactly what I was looking for — I didn’t want my client to have
   to manually code in rel=”lightbox”, because I know they won’t.
 * However, I see that the code also groups ALL the images on one page. I can’t 
   have this for my current website’s pages, so sadly I’m not able to use this plugin.
   🙁
 * Are there any workarounds to this by any chance?
 * Thanks,
    – C.
 * [http://wordpress.org/extend/plugins/add-rel-lightbox/](http://wordpress.org/extend/plugins/add-rel-lightbox/)

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

 *  Plugin Author [DefProc](https://wordpress.org/support/users/defproc/)
 * (@defproc)
 * [14 years ago](https://wordpress.org/support/topic/plugin-add-rel-lightbox-disable-groups/#post-2792745)
 * Change
 * `" rel="lightbox[post-' . $id . ']"`
 * to
 * `" rel="lightbox"`
 * in version 0.3.
 * Or for version 0.4, change
 * `$a->rel = "lightbox[post-" . $id . "]";`
 * to
 * `$a->rel = "lightbox";`
 * Really I’d like to set it in an admin page, but that’s on the todo list.
 *  Thread Starter [cwendt01](https://wordpress.org/support/users/cwendt01/)
 * (@cwendt01)
 * [14 years ago](https://wordpress.org/support/topic/plugin-add-rel-lightbox-disable-groups/#post-2792746)
 * Thank you for the response!
 * Since I know PHP, I actually already did that. But for some reason, it was still
   grouping the photos.
 * I ended up using another plugin (Add Any Lightbox) that added a box for “Rel”
   in the media manager window, so I set my images to rel=”light[1]”, rel=”lightbox[
   2]”, and so on. That’s the only thing I could do to get it to work…
 *  Plugin Author [DefProc](https://wordpress.org/support/users/defproc/)
 * (@defproc)
 * [14 years ago](https://wordpress.org/support/topic/plugin-add-rel-lightbox-disable-groups/#post-2792748)
 * That seems less than ideal, what lightbox clone are you using? Some allow the
   gallery mode to set as default instead of the single mode.
 *  Thread Starter [cwendt01](https://wordpress.org/support/users/cwendt01/)
 * (@cwendt01)
 * [14 years ago](https://wordpress.org/support/topic/plugin-add-rel-lightbox-disable-groups/#post-2792749)
 * I agree with you there. But since I’m only using lightboxes on 1 page, it’s not
   too inconvenient.
 * I’m using the “Lightbox Plus” plugin to generate my lightboxes. I checked just
   now and I don’t have any slideshow or gallery settings turned on.
 *  Plugin Author [DefProc](https://wordpress.org/support/users/defproc/)
 * (@defproc)
 * [14 years ago](https://wordpress.org/support/topic/plugin-add-rel-lightbox-disable-groups/#post-2792752)
 * Ah, I see, from the instructions on the [plugin page](http://wordpress.org/extend/plugins/lightbox-plus/),
   lightbox plus works the opposite way to the ones I’ve seen so far. It seems to
   need the unique id to *stop* the grouping:
 * `rel="lightbox[uniqueID|filename]"`
 * how about `rel="lightbox[wp-image-' . $val[5] . ']"` in line 41 to use the image
   post id?
 *  Thread Starter [cwendt01](https://wordpress.org/support/users/cwendt01/)
 * (@cwendt01)
 * [14 years ago](https://wordpress.org/support/topic/plugin-add-rel-lightbox-disable-groups/#post-2792753)
 * I bet you that’d work! I couldn’t figure out, since the PHP used a str_replace
   function (pulling that from top of head, but it sounds wrong…), I couldn’t figure
   out how to tell it to insert a random variable for inside the lightbox[] brackets.
 * I’ll give it a go next time I’m working on that website. Thank you! 🙂

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

The topic ‘[Plugin: add-rel-lightbox] Disable Groups’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/add-rel-lightbox.svg)
 * [add-rel-lightbox](https://wordpress.org/plugins/add-rel-lightbox/)
 * [Support Threads](https://wordpress.org/support/plugin/add-rel-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/add-rel-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-rel-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-rel-lightbox/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [cwendt01](https://wordpress.org/support/users/cwendt01/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-add-rel-lightbox-disable-groups/#post-2792753)
 * Status: resolved