Field Render

Display an Image Sizes selector as radio, checkbox or select field type.

Field Group

Field Settings

Setting nameDescription
Allow Image SizesFilter which image size can be chosen
AppearanceSelect the appearance of this field
Default ValueEnter each default value on a new line
Display FormatChoose between Size name, size or size name and dimensions
Return ValueReturn the size object or size name
Allow NullAllow empty value
LayoutChoose the layout
ToggleAllow to toggle all values
Allow Custom
Allow custom value
Save Custom
Save custom value in the field settings
Select multiple valuesAllow multiple values selection
Stylised UIEnable Select2 UI style

Field Value

Return Format: Size Object

$image_sizes = get_field('image_sizes');

 * array(
 *     'name'   => 'thumbnail',
 *     'width'  => 150,
 *     'height' => 150,
 *     'crop'   => true,
 * )

Return Format: Size Name

$image_sizes = get_field('image_sizes');

// thumbnail

Unformatted Value

$image_sizes = get_field('image_sizes', false, false);

// thumbnail