Field Render

Display an Image Selector field.

Field Group

Field Settings

Setting nameDescription
ImagesEnter each choice on a new line. Can be an image url or attachment ID.
Default ValueEnter each default value on a new line
Images SizeChoose the default image size
ContainerChoose the image container width, height and border size
Return ValueChoose to return form between value, array or image
Allow Null
Allow to toggle values
Select multiple values
Allow to select multiple values
LayoutChoose between the horizontal or vertical layout

Field Value

Value can then be retrieved using the common get_field() function. Usage example:

$slug = get_field('image_selector');