Title: Advanced Custom Fields: Image Size Select Field
Author: Jeremy Ross
Published: <strong>2018 年 11 月 30 日</strong>
Last modified: 2026 年 5 月 27 日

---

搜索插件

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

# Advanced Custom Fields: Image Size Select Field

 作者：[Jeremy Ross](https://profiles.wordpress.org/jeremyrwross/)

[下载](https://downloads.wordpress.org/plugin/acf-image-size-select.1.0.4.zip)

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

 [支持](https://wordpress.org/support/plugin/acf-image-size-select/)

## 描述

Field to select registered image sizes within the WordPress dashboard.

### Compatibility

This ACF field type is compatible with:
 * ACF 5

### How to Use

Once activated, this plugin will create a _Image Size_ field type in ACF. This field
type will list all registered field types as a drop down within the field group.

To use this field within your custom templates you will use the following code:

    ```
    $my_image_id   = get_field('my_image_id');    // ACF Image return type set to ID for this demo
    $my_image_size = get_field('my_image_size');  // The selected image size (eg. large)

    echo wp_get_attachment_image( $my_image_id, $my_image_size );  // Output the image based on the ID, and the Image Size selected.
    ```

## 屏幕截图

[[

## 安装

 1. Copy the `acf-image-size-select` folder into your `wp-content/plugins` folder
 2. Activate the Image Size Select plugin via the plugins admin page
 3. Create a new field via ACF and select the Image Size Select type

## 评价

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

### 󠀁[Flawless!](https://wordpress.org/support/topic/flawless-127/)󠁿

 [aaronbennett2097](https://profiles.wordpress.org/aaronbennett2097/) 2019 年 2 
月 13 日

This worked perfectly for me – had to change my code slightly to work with image
ID’s and a repeater field, but was very easy to do. Thank you for your work!!

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/acf-image-size-select/reviews/)

## 贡献者及开发者

「Advanced Custom Fields: Image Size Select Field」是开源软件。 以下人员对此插件
做出了贡献。

贡献者

 *   [ Jeremy Ross ](https://profiles.wordpress.org/jeremyrwross/)

[帮助将「Advanced Custom Fields: Image Size Select Field」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/acf-image-size-select)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.4

 * Fix PHP 8.2 dynamic property deprecation warnings.

#### 1.0.3

 * Add Github Action for Releases
 * Update Tested version to 6.3

#### 1.0.2

 * Added medium_large to list of WordPress images to check
 * Removed automated github to SVN sync

#### 1.0.1

 * Updated line formatting
 * Added github to SVN sync

#### 1.0.0

 * Initial Release.

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**2 周前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 3.6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/acf-image-size-select/)
 * 标签
 * [acf](https://cn.wordpress.org/plugins/tags/acf/)[advanced custom fields](https://cn.wordpress.org/plugins/tags/advanced-custom-fields/)
   [image size](https://cn.wordpress.org/plugins/tags/image-size/)
 *  [高级视图](https://cn.wordpress.org/plugins/acf-image-size-select/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/acf-image-size-select/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/acf-image-size-select/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/acf-image-size-select/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/acf-image-size-select/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/acf-image-size-select/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/acf-image-size-select/reviews/)

## 贡献者

 *   [ Jeremy Ross ](https://profiles.wordpress.org/jeremyrwross/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/acf-image-size-select/)