Title: Image Feed Widget
Author: yorik
Published: <strong>2009 年 11 月 19 日</strong>
Last modified: 2011 年 12 月 1 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# Image Feed Widget

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

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

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

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

## 描述

This plugin allows to place widgets on your sidebars, that fetch the contents of
one or more RSS feeds, combine them by date if there is more than one, and display
the thumbnail images that are included in the feeds items. You can give the widget
any number of feeds, and limit the quantity of images to be displayed.

You can use any kind of RSS feed, but they must contain thumbnails (the plugin will
check for, in that order, media:thumbnail tags, or enclosure tags, or, if none of
these are found, an img tag inside the feed item description). If you don’t undestand
a word of this, just make sure your feed carries thumbnails, otherwise all you’ll
see is a “No thumbnail found” text…

You can also use this plugin from your theme templates, to display images lists 
anywhere else on your blog and you can easily give them a fixed size or a maximum
size with CSS styling.

## 安装

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory or use the wordpress
    plugin installer
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. A new “Image Feed Widget” will be available.
 4. Give a list of feeds to the widget, separated by commas, such as http://www.example1.
    com/rss,http://www.example2.com/rss2

## 常见问题

  How do I define the size of the thumbnails?

The thumbnail images can easily sized by placing something like this in your theme’s
css stylesheet:

.image-feed-small a img {
 max-height: 100px; max-width: 100px; }

The above css code will apply to all widgets. You can use “height” and “width” instead
of “max-height” and “max-width” if you prefer.

  What about having several images per line?

Easy too, the content of the widget is a list, so you just need to add this to your
theme’s css stylesheet:

image-feed-list {
 display: inline; }

you must of course specify a width that allows more than one image to fit in your
sidebar…

  And how do I use the plugin in my theme?

Anywhere in your theme templates, you can display a list of images coming from rss
feeds. Just place the following code where you want the images to appear:

    ```
    <?php get_image_feed_list($feedslist, $maxfeeds, $divname, $printtext, $target, $useenclosures); ?>
    ```

Where:
 * $feedlist is a comma-separated list of rss feed urls (mandatory) * $maxfeeds
is the maximum number of images to display (optional, default = 90) * $divname is
a name suffix for the list class. “myList” will become “image-feed-myList” (optional)*
$printtext must be 1 if you want the image title to be printed below the image (
optional) * $target is “samewindow” or “newwindow”, depending on where you want 
links to open (optional, default = samewindow) * $useenclosures is “yes” or “no”(
optional, default = yes). Use this if you don’t want to use the tag in the feed 
and force the script to find an image link in the feed item description. Some feeds
like flickr use an original-size image in enclosure and a thumbnail-size image in
the description, don’t ask me why…

Example:

    ```
    <?php get_image_feed_list("http://www.example1.com/rss,http://www.example2.com/rss2", 10, "myImagesList"); ?>
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1

 * First version

#### 0.2

 * Added a selection box to choose between opening links in the same window or in
   a new window

#### 0.3

 * Added an option to disable the use of enclosure tags

#### 0.4

 * Added an option to display image title or not

#### 0.5

 * Fixed a bug that prevented multiple choices boxes to appear in the plugin settings

## 额外信息

 *  版本 **0.5**
 *  最后更新：**15 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 2.8.4 或更高版本 **
 *  已测试的最高版本为 **3.2.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/image-feed-widget/)
 * 标签
 * [feed](https://cn.wordpress.org/plugins/tags/feed/)[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/image-feed-widget/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://None!%20Keep%20your%20money%20for%20important%20things!)