Title: LMDM Lightbox Gallery Membership
Author: Nic
Published: <strong>2026 年 7 月 10 日</strong>
Last modified: 2026 年 7 月 10 日

---

搜索插件

![](https://ps.w.org/lmdm-lightbox-gallery-membership/assets/banner-772x250.jpg?
rev=3602654)

![](https://ps.w.org/lmdm-lightbox-gallery-membership/assets/icon-256x256.png?rev
=3602654)

# LMDM Lightbox Gallery Membership

 作者：[Nic](https://profiles.wordpress.org/nicmare/)

[下载](https://downloads.wordpress.org/plugin/lmdm-lightbox-gallery-membership.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/lmdm-lightbox-gallery-membership/#description)
 * [评价](https://cn.wordpress.org/plugins/lmdm-lightbox-gallery-membership/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/lmdm-lightbox-gallery-membership/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/lmdm-lightbox-gallery-membership/#developers)

 [支持](https://wordpress.org/support/plugin/lmdm-lightbox-gallery-membership/)

## 描述

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

## 屏幕截图

[⌊Image block inspector with the Lightbox gallery group selector⌉⌊Image block inspector
with the Lightbox gallery group selector⌉[

Image block inspector with the `Lightbox gallery group` selector

[⌊Gallery caption used as readable select label⌉⌊Gallery caption used as readable
select label⌉[

Gallery caption used as readable select label

## 安装

 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.

## 常见问题

### 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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「LMDM Lightbox Gallery Membership」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Nic ](https://profiles.wordpress.org/nicmare/)

[帮助将「LMDM Lightbox Gallery Membership」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lmdm-lightbox-gallery-membership)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/lmdm-lightbox-gallery-membership/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/lmdm-lightbox-gallery-membership/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/lmdm-lightbox-gallery-membership/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/lmdm-lightbox-gallery-membership/)。

## 更新日志

#### 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

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**3 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.9 或更高版本 **
 *  已测试的最高版本为 **7.0.7**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/lmdm-lightbox-gallery-membership/)
 * 标签
 * [gallery](https://cn.wordpress.org/plugins/tags/gallery/)[gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)
   [image](https://cn.wordpress.org/plugins/tags/image/)[lightbox](https://cn.wordpress.org/plugins/tags/lightbox/)
   [LMDM](https://cn.wordpress.org/plugins/tags/lmdm/)
 *  [高级视图](https://cn.wordpress.org/plugins/lmdm-lightbox-gallery-membership/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/lmdm-lightbox-gallery-membership/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/lmdm-lightbox-gallery-membership/reviews/)

## 贡献者

 *   [ Nic ](https://profiles.wordpress.org/nicmare/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/lmdm-lightbox-gallery-membership/)