Title: Get Image from Post
Author: klickonit
Published: <strong>2009 年 6 月 7 日</strong>
Last modified: 2017 年 7 月 13 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/get-image-from-post.svg)

# Get Image from Post

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

[下载](https://downloads.wordpress.org/plugin/get-image-from-post.zip)

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

 [支持](https://wordpress.org/support/plugin/get-image-from-post/)

## 描述

** this plugin is no longer being update. Please feel free to adopt me! **

This is a simple plugin which allows users to return an image from the related post.

## 安装

To install the plugin, please upload the folder to your plugins folder and active
the plugin.

## 常见问题

  Installation Instructions

To install the plugin, please upload the folder to your plugins folder and active
the plugin.

  How do I display the results?

Insert the following code into your WordPress theme files:

  General results

Without passing any parameters, the plugin will return ten results or fewer depending
on how many posts you have.

horshipsrectors_get_image_from_post();

  Altering the before and after values

By default the plugin wraps your code in list item (<li>) tags but you can specify
how to format the results using the following code:

horshipsrectors_get_image_from_post(‘before=<p>&after=</p>’);

  Adding a Link

If you’d like to link to the post (remember it’s not live yet) you can do so by 
calling:

horshipsrectors_get_image_from_post(‘link=true’);

  Which image?

You can specify which image is returned using the code:

horshipsrectors_get_image_from_post(‘image=2’);

  Strip Attributes

If you would like to strip the attributes such as width and height from the returned
value:

horshipsrectors_get_image_from_post(‘strip=true’);

  Echo vs. Return

Finally, if you’d like to copy the results into a variable you can return the results
as follows:

horshipsrectors_get_image_from_post(‘show=false’);

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Get Image from Post」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/get-image-from-post)

### 对开发感兴趣吗?

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

## 更新日志

#### 2.0.0

 * renamed function to be more compatible.
 * tested and optimized in WordPress 3.2
 * added test to determine in images existed

#### 1.0.0

 * official release
 * added strip attribute

#### 1.1.0

 * minor fixes for wordpress new admin

## 采用此插件

 该插件正在寻找新的、活跃开发者。您有兴趣承担这份责任吗？

 [阅读更多](https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-plugin/)

## 额外信息

 *  版本 **2017.08.13**
 *  最后更新：**9 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0.0 或更高版本 **
 *  已测试的最高版本为 **4.8.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/get-image-from-post/)
 * 标签
 * [adopt-me](https://cn.wordpress.org/plugins/tags/adopt-me/)
 *  [高级视图](https://cn.wordpress.org/plugins/get-image-from-post/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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