Title: Multiple Post Thumbnails
Author: Chris Scott
Published: <strong>2010 年 6 月 13 日</strong>
Last modified: 2018 年 11 月 26 日

---

搜索插件

![](https://ps.w.org/multiple-post-thumbnails/assets/banner-772x250.png?rev=652603)

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

![](https://s.w.org/plugins/geopattern-icon/multiple-post-thumbnails_d94965.svg)

# Multiple Post Thumbnails

 作者：[Chris Scott](https://profiles.wordpress.org/chrisscott/)

[下载](https://downloads.wordpress.org/plugin/multiple-post-thumbnails.1.7.zip)

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

 [支持](https://wordpress.org/support/plugin/multiple-post-thumbnails/)

## 描述

Adds multiple post thumbnails to a post type. If you’ve ever wanted more than one
Featured Image on a post, this plugin is for you.

## 屏幕截图

 * [[
 * Admin meta box showing a new thumbnail named ‘Secondary Image’.
 * [[
 * Media modal showing images attached to the post and a ‘Secondary Image’ selected.
 * [[
 * Admin meta box with the ‘Secondary Image’ selected.

## 安装

Please refer to full documentation at https://github.com/voceconnect/multi-post-
thumbnails/wiki

## 常见问题

If you have any issues with this plugin, please log them at the Github repo for 
this plugin.
 This is done to centralize our issues and make sure nothing goes unnoticed.

The URL to log an issue is https://github.com/voceconnect/multi-post-thumbnails/
issues

See Frequently Asked Questions at https://github.com/voceconnect/multi-post-thumbnails/
wiki/Frequently-Asked-Questions

## 评价

![](https://secure.gravatar.com/avatar/3e143f44e165382a50aa532447fc0dc22b17f0ca963cfcca9c2917bb4bb9710f?
s=60&d=retro&r=g)

### 󠀁[Not working with WordPress 5.4 and Gutenberg editor](https://wordpress.org/support/topic/not-working-with-wordpress-5-4-and-gutenberg-editor/)󠁿

 [Sven Woltmann](https://profiles.wordpress.org/svenwoltmann/) 2020 年 6 月 10 日
2 回复

I don’t see any option to add a secondary feature image.

![](https://secure.gravatar.com/avatar/118000125f70cb8994b3ff61b04f470361c7c908a3889fb57b479a0e5e9c6f4a?
s=60&d=retro&r=g)

### 󠀁[Works as espected](https://wordpress.org/support/topic/works-as-espected-2/)󠁿

 [Lox](https://profiles.wordpress.org/dreadlox/) 2019 年 10 月 29 日

Very nice extensions for developers

![](https://secure.gravatar.com/avatar/e8139e536a1bb66ebe65f63081f4e077b59188d90a5de6474f5e655c08bed7f4?
s=60&d=retro&r=g)

### 󠀁[Not working with WP version 4.7.1.](https://wordpress.org/support/topic/not-working-with-wp-version-4-7-1/)󠁿

 [karhu](https://profiles.wordpress.org/karhu/) 2017 年 1 月 19 日

I updated the plugin from 1.3 version to 1.6.6. but it didn’t work anymore. When
I selected an image as an additional post thumbnail, the pop-up window closed but
the selected image didn’t appear in page’s thumbnail preview window. And after saving
the changes to page, the thumbnail image didn’t appear in the actual page either.
For now, I rolled back to version 1.3 and it works as it should. But I would like
to update to version 1.6.6. since the pop-up window for selecting additional post
thumbnails is much easier to use and more stylish with 1.6.6. version when compared
to 1.3. version. I also tried the fixed found from this topic (https://wordpress.
org/support/topic/bugfix-bug-with-multiple-post-types-wp-4-5/) but that didn’t work
either.

![](https://secure.gravatar.com/avatar/c5debc287c39574307d9282c8b29a58caa8bc18884dd1a1161ff03dfcb437ae4?
s=60&d=retro&r=g)

### 󠀁[Still works great!](https://wordpress.org/support/topic/still-works-great-13/)󠁿

 [Stonehenge Creations](https://profiles.wordpress.org/duisterdenhaag/) 2016 年 
9 月 3 日 1 回复

Even though this plugin hasn’t been updated in a long time, it still works great!
So I guess there’s just no reason for the developer to have it updated. 😉 For me
this plugin is one of the easiest ways to selectively add a header image. I want
it on some pages, but not on others. Using the standard Featured Image function 
will set it foor all or none, so that’s not flexible enough. One suggestion for 
an update though: Now you still need to add the following snippet to your theme’s
function.php. if (class_exists('MultiPostThumbnails')) { new MultiPostThumbnails(
array( 'label' => 'Secondary Image', 'id' => 'secondary-image', 'post_type' => '
post' 'post_type' => 'page' ) ); } It would be great if the plugin did this automatically.
That will also keep the plugin active if you switch themes. P.S. To add the meta
box to other post types, just add it to the snippet. ‘post_type’ => ‘event’ will
add it for Events Manager, for example. 😉

![](https://secure.gravatar.com/avatar/5d326e079ea3d14dbd4dee0e999a6b2a0cd3999d12afa5d9ee8f64a832ada721?
s=60&d=retro&r=g)

### 󠀁[Very bad plugin](https://wordpress.org/support/topic/very-bad-plugin-5/)󠁿

 [sorin_gheorghita](https://profiles.wordpress.org/sorin_gheorghita/) 2016 年 9 
月 3 日 1 回复

I installed this plugin o a custom theme where I was using the first featured image
as a background image and after installing this, surprise! Not working 🙁 Tried 
te disable/delete it, and surprise again! Still not working. So this plugin messed
up my database. Thanks, developers!

![](https://secure.gravatar.com/avatar/fb4ceb3370ab5bbde3a13c60974ae2eeec3a5fccb4d0dd774fcfa76206b0b17a?
s=60&d=retro&r=g)

### 󠀁[Excelente!''](https://wordpress.org/support/topic/excelente-308/)󠁿

 [Renan Lara](https://profiles.wordpress.org/renan-lara-1/) 2016 年 9 月 3 日

Plugin fantástico, muito bom!

 [ 阅读所有42条评价 ](https://wordpress.org/support/plugin/multiple-post-thumbnails/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Chris Scott ](https://profiles.wordpress.org/chrisscott/)
 *   [ voceplatforms ](https://profiles.wordpress.org/voceplatforms/)

「Multiple Post Thumbnails」插件已被翻译至 6 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/multiple-post-thumbnails/contributors)
为本插件所做的贡献。

[帮助将「Multiple Post Thumbnails」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/multiple-post-thumbnails)

### 对开发感兴趣吗?

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

## 更新日志

After version 1.3, releases were tracked in github: https://github.com/voceconnect/
multi-post-thumbnails/releases

Historical releases are below:

#### 1.3

 * Don’t show set as links in media screens when not in context (props prettyboymp).
   Add voceplatforms as an author. Updated FAQ.

#### 1.2

 * Only enqueue admin scripts on needed pages (props johnjamesjacoby) and make sure
   thickbox is loaded (props prettyboymp). Add media-upload script to dependencies
   for post types that don’t already require it (props kevinlangleyjr).

#### 1.1

 * Update FAQ. Clean up `readme`. Don’t yell `null`. Don’t output link to original
   if there is no image.

#### 1.0

 * Use `get_the_ID()` in `get_the_post_thumbnail`. Props helgatheviking.

#### 0.9

 * Increment version only to attempt to get plugin versions back in sync.

#### 0.8

 * Revert init action changes from 0.7. Fixes admin metaboxes not showing when the
   MultiPostThumbnails class is instantiated in an action instead of `functions.
   php`

#### 0.7

 * Add actions/filters on init action. Should fix admin metaboxes not showing or
   showing out of order. props arizzitano.

#### 0.6

 * Update `get_the_post_thumbnail` return filter to use format `{$post_type}_{$thumb_id}
   _thumbnail_html` which allows filtering by post type and thumbnail id which was
   the intent. Props gordonbrander.
 * Update plugin URL to point to Plugin Directory

#### 0.5

 * Update readme to check for `MultiPostThumbnails` class before calling.

#### 0.4

 * Added: optional argument `$link_to_original` to *_the_post_thumbnails template
   tags. Thanks to gfors for the suggestion.
 * Fixed: PHP warning in media manager due to non-existent object

#### 0.3

 * Fixed: when displaying the insert link in the media library, check the post_type
   so it only shows for the registered type.

#### 0.2

 * Update docs and screenshots. Update tested through to 3.0 release.

#### 0.1

 * Initial release.

## 额外信息

 *  版本 **1.7**
 *  最后更新：**7 年前**
 *  活跃安装数量 **20,000+**
 *  WordPress 版本 ** 2.9.2 或更高版本 **
 *  已测试的最高版本为 **5.0.25**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [Czech](https://cs.wordpress.org/plugins/multiple-post-thumbnails/) 、 [Dutch](https://nl.wordpress.org/plugins/multiple-post-thumbnails/)、
   [English (US)](https://wordpress.org/plugins/multiple-post-thumbnails/) 、 [French (France)](https://fr.wordpress.org/plugins/multiple-post-thumbnails/)、
   [German](https://de.wordpress.org/plugins/multiple-post-thumbnails/) 、 [Russian](https://ru.wordpress.org/plugins/multiple-post-thumbnails/)
   和 [Ukrainian](https://uk.wordpress.org/plugins/multiple-post-thumbnails/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/multiple-post-thumbnails)
 * 标签
 * [featured image](https://cn.wordpress.org/plugins/tags/featured-image/)[image](https://cn.wordpress.org/plugins/tags/image/)
   [thumbnails](https://cn.wordpress.org/plugins/tags/thumbnails/)
 *  [高级视图](https://cn.wordpress.org/plugins/multiple-post-thumbnails/advanced/)

## 评级

 4.7 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/multiple-post-thumbnails/reviews/#new-post)

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

## 贡献者

 *   [ Chris Scott ](https://profiles.wordpress.org/chrisscott/)
 *   [ voceplatforms ](https://profiles.wordpress.org/voceplatforms/)

## 支持

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

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