Title: RSS Image Widget
Author: zackdesign
Published: <strong>2008 年 3 月 5 日</strong>
Last modified: 2026 年 2 月 23 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/rss-image-widget.svg)

# RSS Image Widget

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

[下载](https://downloads.wordpress.org/plugin/rss-image-widget.3.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/rss-image-widget/)

## 描述

RSS Image Widget fetches images from any RSS/Atom feed that uses enclosures and 
displays them in a responsive grid with a built-in lightbox. Works as both a classic
widget and a Gutenberg block.

**Features:**

 * **Widget + Block** — Use in sidebars (classic widget) or anywhere in the block
   editor
 * **Lightweight** — No jQuery, no external CDN. Just a tiny vanilla JS lightbox(
   ~2 KB)
 * **Responsive grid** — CSS Grid layout adapts to any container width
 * **Lazy loading** — Images use native browser lazy loading
 * **Accessible** — Lightbox supports keyboard navigation (Escape to close)
 * **Zero configuration** — Just add a feed URL and go

**Upgrading from v2.x:**

The Bootstrap classes (`row`, `col-xs-12`) and external Lightbox2 CDN have been 
replaced with clean semantic HTML, a responsive CSS Grid layout, and a bundled vanilla
JS lightbox. If you had custom CSS targeting the old classes, you will need to update
it to use the new `.rss-image-gallery` BEM classes.

## 区块

该插件提供了 1 个区块.

 *   RSS Image Gallery Display images from an RSS or Atom feed as a lightbox gallery.

## 安装

**As a block:**

 1. In the block editor, click the + inserter and search for “RSS Image Gallery”
 2. Enter your feed URL in the placeholder
 3. Adjust the number of images in the block settings sidebar

**As a widget:**

 1. Go to Appearance > Widgets
 2. Add the “RSS Image Gallery” widget to a sidebar
 3. Enter your feed URL and number of images

## 常见问题

### Images aren’t appearing

Your feed must use enclosures to provide image URLs. Most photo feeds (Flickr, etc.)
do this by default. If your feed doesn’t use enclosures, this plugin won’t find 
any images.

### Can I style the gallery?

Yes. The gallery uses BEM-style classes: `.rss-image-gallery`, `.rss-image-gallery__item`,`.
rss-image-gallery__image`, `.rss-image-gallery__caption`. The lightbox uses `.rss-
lightbox`.

## 评价

此插件暂无评价。

## 贡献者及开发者

「RSS Image Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「RSS Image Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/rss-image-widget)

### 对开发感兴趣吗?

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

## 更新日志

#### 3.0.0

 * New: Gutenberg block — “RSS Image Gallery” available in the block editor
 * New: Responsive CSS Grid layout replaces Bootstrap classes
 * New: Built-in vanilla JS lightbox replaces external Lightbox2 CDN dependency
 * New: Lazy loading on all images
 * New: Accessible lightbox with keyboard support (Escape to close)
 * Removed: jQuery dependency
 * Removed: External CDN dependency (cdnjs Lightbox2)
 * Removed: Bootstrap HTML classes (col-xs-12, row, thumbnail)
 * Changed: Uses WordPress fetch_feed() instead of direct SimplePie instantiation
 * Changed: Assets only loaded when widget/block is on the page
 * Changed: Requires WordPress 6.0+
 * Security: Input sanitization and output escaping throughout

#### 2.1.0

 * PHP 8.x compatibility: replaced create_function() with anonymous function
 * Fixed SimplePie include path for modern WordPress
 * Replaced extract() with direct array access
 * Removed dead $width code
 * Security hardening: ABSPATH guard, output escaping, input sanitization

#### 2.0.3

 * Tested with WP 4.3.1
 * Changed to PHP5-compatible classes

#### 2.0.2

 * Tested with WP 4.2.2

#### 2.0.1

 * Fix for PHP 5.3

#### 2.0.0

 * Now using Lightbox provided by CDN instead of Shadowbox
 * Bootstrap-compatible classes and HTML
 * SimplePie caches using the WordPress upload directory if available

#### 1.4.2

 * Removal of PHP Thumb to remove thumbnail generation
 * Removal of garbage collection function

#### 1.4.1

 * Updated the license requirements
 * Tested in 3.3.2

#### 1.4

 * Now comes with Shadowbox for showing images in gallery
 * Titles moved below image by default
 * Clicking image shows the full size
 * Clicking title sends you to the website
 * Improved caching

#### 1.3.1

 * Intelligent garbage collection
 * Width/Height resizing now settable in widget

#### 1.3

 * SimplePie dependency removed as it comes with WordPress 2.7+
 * PHPThumb changed to latest version

#### 1.2.1

 * Change image_widget.tmpl to validated XHTML

#### 1.2

 * Uses WordPress 2.8 widget class — supports multiple instances

#### 1.1

 * Addition to admin of changeable title

#### 1.0

 * First release

## 额外信息

 *  版本 **3.0.0**
 *  最后更新：**3 月前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/rss-image-widget/)
 * 标签
 * [feed](https://cn.wordpress.org/plugins/tags/feed/)[gallery](https://cn.wordpress.org/plugins/tags/gallery/)
   [image](https://cn.wordpress.org/plugins/tags/image/)[rss](https://cn.wordpress.org/plugins/tags/rss/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/rss-image-widget/advanced/)

## 评级

 3 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/rss-image-widget/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/rss-image-widget/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/rss-image-widget/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/rss-image-widget/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/rss-image-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/rss-image-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/rss-image-widget/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/rss-image-widget/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://zackdesign.biz/)