LMDM Lightbox Gallery Membership

Description

WordPress ships with a native Lightbox-Effect for image and gallery blocks. This plugin adds one focused editor option to standalone core Image blocks: Join gallery.

When the native Lightbox-Effect is enabled on an Image block, the block inspector shows all Lightbox-enabled Gallery blocks on the current page. Select one of them and the standalone image becomes part of that gallery’s native lightbox navigation group on the frontend.

The plugin does not replace the core Image or Gallery blocks. It stores a stable internal lightbox group ID on Gallery blocks and a selected group ID on standalone Image blocks. During rendering, it uses the same WordPress Interactivity API context that the core Gallery block uses for native lightbox navigation.

For a more readable editor experience, gallery captions are used as select labels when available. If a gallery has no caption, the plugin falls back to a numbered label with the image count.

Plugin Features

✔ extends the existing core Image and Gallery blocks
✔ adds a Join gallery selector to standalone Image blocks
✔ only shows the selector when the native Lightbox-Effect is active
✔ only lists Gallery blocks whose native Lightbox-Effect is active
✔ uses Gallery captions as human-readable select labels
✔ stores stable internal group IDs on Gallery blocks
✔ wraps selected standalone Image blocks in the required core/gallery interactivity context
✔ keeps the native WordPress lightbox overlay and navigation behavior
✔ ships with English and German PO, MO and JSON translation files
✔ uses no build step and no custom replacement block

Screenshots

Installation

  1. Upload the plugin files to the /wp-content/plugins/lmdm-lightbox-gallery-membership directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Open a post or page in the block editor.
  4. Add a Gallery block and enable the native Lightbox-Effect.
  5. Add or select a standalone Image block and enable its native Lightbox-Effect.
  6. Open the Lightbox gallery group panel and choose the gallery the image should join.

FAQ

Does it create a new block?

No, it only extends the existing core Image and Gallery blocks.

Why is the gallery selector not visible?

The selector is only visible for standalone Image blocks when the native WordPress Lightbox-Effect is active. If the image links to a media file, attachment page or custom URL, the native lightbox is not active and the selector is hidden.

Why is my gallery not listed?

Only Gallery blocks with the native Lightbox-Effect enabled are listed. Enable the gallery lightbox first, then select it from the Image block.

How are gallery names chosen in the selector?

If a Gallery block has a caption, that caption is used as the label. If there is no caption, the plugin uses a fallback like Gallery 2 (12 images).

Where does the external image appear in the lightbox order?

Standalone images are appended after the regular gallery images in the native lightbox navigation order.

Does it change the Gallery markup?

Only when needed. Gallery blocks receive a stable internal group ID, and selected standalone Image blocks receive a small wrapper that provides the same core/gallery interactivity context used by WordPress core.

What happens when I disable the plugin?

The additional selector disappears and standalone Image blocks stop joining gallery lightbox groups. Existing Image and Gallery blocks continue to work as normal core blocks.

Who is the author of the plugin?

The WordPress user “nicmare” vibe coded it. Means he had the idea of the plugin and uses AI to craft the code.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“LMDM Lightbox Gallery Membership” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • first release of the plugin
  • added standalone Image block gallery membership selector
  • added stable Gallery block group IDs
  • added frontend rendering integration for the native Core lightbox
  • added English and German PO, MO, JSON and POT language files