Title: Feature image for PressBooks
Author: Antonio D.
Published: <strong>2019 年 12 月 11 日</strong>
Last modified: 2019 年 12 月 11 日

---

搜索插件

![](https://ps.w.org/featured-image-for-pressbooks/assets/banner-772x250.png?rev
=2210061)

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

![](https://ps.w.org/featured-image-for-pressbooks/assets/icon-256x256.png?rev=2210061)

# Feature image for PressBooks

 作者：[Antonio D.](https://profiles.wordpress.org/colomet/)

[下载](https://downloads.wordpress.org/plugin/featured-image-for-pressbooks.0.8.zip)

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

 [支持](https://wordpress.org/support/plugin/featured-image-for-pressbooks/)

## 描述

This plugin provides the possibility to use images adapted to a PressBooks installation.
Features:
 * Add support of thumbnails in PressBooks CPTs. * Use an image as Featured
Image of your PressBooks CPTs. * New images sizes with the post max size (narrow–
508px, standard – 688px, wide – 832px) * New sizes in attachment display settinngs.
By default is selected the size of the blog. * Option to deactivate feature images
at mobiles.

**Only works with [multisite](https://wordpress.org/support/article/create-a-network/)
installation!**
 **Only works with [PressBooks](https://github.com/pressbooks/pressbooks)
installation!**

### 0.8

 * **ADDITIONS**
    - nonce, authorization checks
 * **ENCHANCEMENTS**
    - Functions renaming (prefixes)
    - Minor text changes and visual enhancements
 * **REMOVED**
    - Empty section callback function

### 0.7

 * Major rework (upgrade) of plugin functionality
 * **ADDITIONS**
    - Featured images are now able to be imported from Source to all of its clones
      from EFP Customization settings.
    - Bottom field of featured image metabox in post-edit page changed to display
      information about availability of source images. More information in documentation-
      technical.
 * **REMOVED**
    - Functionalities related to adding featured images by URL.
 * **ENCHANCEMENTS**
    - documentation
    - files renamed, some functions relocated
 * **List of Files revised**
    - fifp-admin-settings.php
    - featured-iamges-for-pressbooks.php

### 0.6

 * **ADDITIONS**
    - Featured images section in EFP Customization settings page.
    - Functionality to disable displaying featured images on mobile devices for 
      the book.
 * **ENCHANCEMENTS**
    - documentation
 * **List of Files revised**
    - featured-image-for-pressbooks.php
    - added fifp-admin-settings.php

### 0.5

 * **REMOVED**
    - Autoloader

### 0.4

 * **ENCHANCEMENTS**
    - New sizes in attachment display settings. By default is selected the size 
      of the blog.
 * **ADDITIONS**
    - Automatically set the image Title, Alt-Text, Caption & Description upon upload
 * **List of Files revised**
    - featured-image-for-pressbooks.php

### 0.3

 * **ENCHANCEMENTS**
    - Set good size

### 0.2

 * **ADDITIONS**
    - Activate the post-thumbnails in theme
 * **ENCHANCEMENTS**
    - New file name
    - Change autoloader parameters

### 0.1

 * **ADDITIONS**
    - Use a media stored image as a featured image
    - Use an external image as a featured image via URL
    - Set appropriate featured image size according to Pressbooks books sizes
    - Monitor featured images from posts administration area

### Disclaimers

The Featured image for PressBooks plugin is supplied “as is” and all use is at your
own risk.

## 安装

#### This plugin requires:

This sections describes the requirements of the plugin.

 * WordPress Multisite installation
 * PressBooks plugin activated
 * Feature image functionality may require an integration with your theme.

#### Installation instructions:

This section describes how to install the plugin and get it working.

 1. Clone (or copy) this repository folder `featured-image-for-pressbooks` to the `/
    wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. By the configuration of the post size (between narrow, standard and wide), the 
    required image is selected by default.

#### Setup

 * A new size is available in (and selected by default) in the attachment display
   settings.
 * A new metabox is available in each page where an image link can be used or an
   image can be upload (where the size would be automatic selected as long as is
   as big as the page size).

## 常见问题

  I have a feature request, I’ve found a bug, a plugin is incompatible…

Please visit [the support forums](https://wordpress.org/support/plugin/xxxxxxxx)

  I am a developer; how can I help?

Any input is much appreciated, and everything will be considered.
 Please visit 
the [GitHub project page](https://github.com/my-language-skills/featured-image-for-pressbooks)
to submit issues or even pull requests.

  Must I create the images in any spacial size?

No. As long as the images are as big as the post size (narrow – 508px, standard –
688px, wide – 832px), the plugin will be able to create the new size versions.

If the image is not as big as the content area, the image will be centered with 
not content in left or right side.

  What if the images are upload before the plugin is activated?

Will not work as the images get the cut with the new sizes after the upload. [Regenerate thumbnais](https://es.wordpress.org/plugins/tags/thumbnail/)
or similar plugins are required in order to create the thumbnails again in all the
upload images.

  What if I not longer need the plugin?

The images would be created in that new sizes. You can just let them in the server
or to search the suffix -508; -688; -832 and to delete those images

## 评价

此插件暂无评价。

## 贡献者及开发者

「Feature image for PressBooks」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Antonio D. ](https://profiles.wordpress.org/colomet/)
 *   [ Daniil Zhitnitskii ](https://profiles.wordpress.org/danzhik/)
 *   [ lukastonhajzer ](https://profiles.wordpress.org/lukastonhajzer/)

[帮助将「Feature image for PressBooks」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/featured-image-for-pressbooks)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **0.8**
 *  最后更新：**7 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **5.2.29**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/featured-image-for-pressbooks/)
 * 标签
 * [images](https://cn.wordpress.org/plugins/tags/images/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [multisite](https://cn.wordpress.org/plugins/tags/multisite/)[pressbooks](https://cn.wordpress.org/plugins/tags/pressbooks/)
   [thumbnail](https://cn.wordpress.org/plugins/tags/thumbnail/)
 *  [高级视图](https://cn.wordpress.org/plugins/featured-image-for-pressbooks/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/featured-image-for-pressbooks/reviews/#new-post)

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

## 贡献者

 *   [ Antonio D. ](https://profiles.wordpress.org/colomet/)
 *   [ Daniil Zhitnitskii ](https://profiles.wordpress.org/danzhik/)
 *   [ lukastonhajzer ](https://profiles.wordpress.org/lukastonhajzer/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://opencollective.com/mylanguageskills)