- This topic has 1 reply, 2 voices, and was last updated 7 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › WP Lightbox Ultimate – Can you group images when displaying WP Gallery using LB?
Just wanting to know if there is a way to group images so you get the next/previous navigation in the Lightbox display when using the lightbox on WP galleries. I have a post that uses the WP gallery display and I have added the wplu_rel=”wp_lightbox_prettyPhoto” to the gallery shortcode. Is there another parameter to add to group the images together?
Post I would like to do this on is: [http://www.bruceatracyphoto.com/foxfire-museum-in-mountain-city-ga/]
Thanks.
Hi, You should be able to do it by adding a custom gallery name in square brackets. For example:
wplu_rel=”wp_lightbox_prettyPhoto[gallery1]”
The only problem with it is that WordPress also looks for square brackets in the content to filter shortcodes. In order to get around this issue you will need to use the HTML equivalent code for square brackets. For example:
wplu_rel=”wp_lightbox_prettyPhoto[gallery1]
;”
This way WordPress won’t consider it as a shortcode inside another shortcode. Please make sure to edit this in “text” mode so it doesn’t break the shortcode.