Title: Get Image
Author: dgmike
Published: <strong>2008 年 6 月 18 日</strong>
Last modified: 2009 年 6 月 3 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Get Image

 由 [dgmike](https://profiles.wordpress.org/dgmike/) 開發

[下載](https://downloads.wordpress.org/plugin/get-image.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/get-image/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/get-image/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/get-image/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/get-image/#developers)

 [技術支援](https://wordpress.org/support/plugin/get-image/)

## 外掛說明

Note: This version only works on WordPress 2.6. If you wants to use on wordpress
2.5, please get
 the version 0.5 on download repository.

Take the last image daughter of a post. To use this plugin you just need to insert
one of
 the following commands in your template:

 * `gi_fullsize ();`
 * `gi_medium ();`
 * `gi_thumbnail ();`

Adding a parameter, it becames in the tag img generated. By default, the plugin 
will return
 a string containing the tag of the image, but you can pass the second
parameter to true to make the impression of this string.

#### Updated in version 0.5

Now you have a `gi_library ()` function. It returns all images from yout post – 
not only the
 last daughter, where you can pass some parameters like size and type
of return you wants.

The sizes of `gi_library ()` are: ‘all’, ‘fullsize’, ‘medium’, ‘thumbnail’

#### Upgraded in version 0.8

Added shortcuts for `gi_thumb ()` and `gi_full()`.

Upgraded for wordpress 2.6

Added width and height in `gi_library`.

Using the native `wp_get_attachment_image ()` function.

#### Upgraded in version 0.9

Now, `gi_fullsize()`, `gi_full()`, `gi_medium()`, `gi_thumbnail()` and `gi_thumb()`
recives two parameters.

The first is $print, this param prints the return, use it to shorcur yours call.
So, if you wants
 to print do not use:

    ```
    <?php echo gi_full(); ?>
    ```

But use:

    ```
    <?php gi_full(1); ?>
    ```

The second param says the number of image you want to use. This number is the number
of image in
 galery order. The next code prints the third image in galery on format
thumbnail.

    ```
    <?php gi_thumb(true, 3); ?>
    ```

The function `gi_library()` have shortcuts for thumb and full sizes. Now you can
use
 gi_library(‘thumb’) or `gi_library('full')` in your templates/scripts.

### Upgrated in version 1.0

Now the function `gi_library()` on mode `brute_array` returns the `post_ID`, `title`,`
caption` and `description`
 from the image.

## 安裝方式

 1. Upload `getimage.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place `<?php gi_fullsize (); ?>` in your templates
 4. You can place `<?php gi_library ('thumbnail'); ?>`

#### Using gi_library

It returns all images from yout post – not only the last daughter, where you can
pass some
 parameters like size and type of return you wants. Sintax:

    ```
    gi_library ($size, $extra, $print, $return_as)
    ```

 1. The `size`s of `gi_library ()` are: ‘all’, ‘fullsize’, ‘medium’, ‘thumbnail’. Default:‘
    thumbnail’
 2. The `extra` is an extra string that you wants to put in your image tag. Default:”
 3. The `print` is used if the `return_as` is `string`. It prints the string genered.
    Default: true
 4. The `return_as` is the return that you wants. Here is the powerfull way to manipulate
    your results. The `result_as` can be: ‘string’, ‘array’, ‘brute_array’

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Get Image〉的開發相關工作。

參與者

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

[將〈Get Image〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/get-image)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/get-image/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/get-image/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/get-image/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/get-image/)。

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **17 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 2.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **2.7.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/get-image/)
 * 標籤:
 * [get-image](https://tw.wordpress.org/plugins/tags/get-image/)[image](https://tw.wordpress.org/plugins/tags/image/)
   [images](https://tw.wordpress.org/plugins/tags/images/)[thumbnail](https://tw.wordpress.org/plugins/tags/thumbnail/)
 *  [進階檢視](https://tw.wordpress.org/plugins/get-image/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/get-image/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/get-image/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/get-image/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://dgmike.com.br)