Title: Custom Post Type Images
Author: yonisink
Published: <strong>2011 年 12 月 21 日</strong>
Last modified: 2012 年 1 月 18 日

---

搜尋外掛

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

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

# Custom Post Type Images

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

[下載](https://downloads.wordpress.org/plugin/custom-post-types-image.0.6.zip)

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

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

## 外掛說明

Custom Post Type Images makes it easy to attach an image to any custom post type,
which you can then call as necessary in the archive page for that post type OR in
the single itself, depending on how you use the plugin. Think of it as a featured
image for your post types, which you can use on overview or other pages.

## 螢幕擷圖

[⌊cptImages options page.⌉⌊cptImages options page.⌉[

cptImages options page.

## 安裝方式

 1. Upload `cptImages` directory to your `/wp-content/plugins/` directory
 2. Activate the Custom Post Type Images plugin through the ‘Plugins’ page in WordPress
 3. Go to Tools > Manage Custom Post Type Images.
 4. To use, select an image for the custom post type and attach. You can then use the
    image in various ways:

As a shortcode. Put [cptImage] wherever you want the image to appear. Not that in
this usage (without a parameter) it will only appear when you are on a single item
of that custom post type OR in the archive page itself. To call any attached image,
use [cptImage cpt=”Custom Post Type Name”].

In PHP in your template. To retrieve the image url to a variable, use get_cptimage_image(
$optionalname, $echo) (you can use get_cptimage_image(“Custom Post Type Name”) to
retrieve a specific post type image, or get_cptimage_image(“Custom Post Type Name”,
true) to echo the url rather than retrieving it. To merely display the image, call
cptimage_image(“Custom Post type Name”) or simply cptimage_image(). Not that if 
you do not pass a post type name it will only appear when you are on a single item
of that custom post type OR in the archive page itself.

Please note, as with every plugin or theme modification, you should do a backup 
of your files beforehand. Although we’ve tested this across many installs, we are
not responsible for anything it does to your system and do not guarantee support.

## 常見問題集

  None so far

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈Custom Post Type Images〉的開發相關工作。

參與者

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

[將〈Custom Post Type Images〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/custom-post-types-image)

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

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

## 中繼資料

 *  版本 **0.5**
 *  最後更新 **14 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.3.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/custom-post-types-image/)
 * 標籤:
 * [custom post type](https://tw.wordpress.org/plugins/tags/custom-post-type/)[custom post type archives](https://tw.wordpress.org/plugins/tags/custom-post-type-archives/)
   [image attachments](https://tw.wordpress.org/plugins/tags/image-attachments/)
 *  [進階檢視](https://tw.wordpress.org/plugins/custom-post-types-image/advanced/)

## 評分

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

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

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

## 參與者

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

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](http://shop.social-ink.net)