Advanced Custom Fields: Image Size Select Field

Advanced Custom Fields: Image Size Select Field Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 3,531 downloads
Advanced Custom Fields: Image Size Select Field Icon

Try plugin: Advanced Custom Fields: Image Size Select Field

We'll create fresh WordPress site with Advanced Custom Fields: Image Size Select Field installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Advanced Custom Fields: Image Size Select Field

Field to select registered image sizes within the WordPress dashboard.

1


0


0


0


0

updated: 8 months ago
since: 6 years ago
author: Jeremy Ross

Description

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.