• Hi, I’m trying to display a few galleries in a page but when I open the lightbox (jetpack) it scrolls through all images in all galleries on the page, I want each gallery to only display images attached to the its given ID.
    I am using this shortcode
    [gallery id="6591"]
    [gallery id="6618"]

    WP 4.7
    Thanks!

    • This topic was modified 7 years, 11 months ago by jfkweb.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s not possible as-is, nor is there an easy fix. I’m really speaking of the default theme’s attachment pages used by the gallery shortcode instead of the lightbox implementation by Jetpack. I know the former much better than Jetpack. The same problem occurs either way AFAIK. The images to scroll through are determined by querying for all image attachments to a post. When you have multiple galleries, that query returns images from all the galleries together instead of just the one we are viewing. Thus we end up scrolling though all of the multiple gallery content in one light box.

    The only solution I see would be to override the gallery shortcode handler so that the output contains not only the images, but complete modal content that includes navigation links for every image that are customized just for that image view instead of relying upon a query to manage the navigation.

    Thread Starter jfkweb

    (@jfkweb)

    Hey, thanks BCworkz!

    I used envira gallery with album addon and it works very well! The docs on this issue are confusing, the codex mentions twice but vaguely that its possible to use multiple galleries.

    Appreciate you reply, have happy Christams if thats your thing!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Multiple galleries in one page?’ is closed to new replies.