Field Render

Display an ACF Fields selector as radio, checkbox or select field type.

Field Group

Field Settings

Setting nameDescription
Allow FormsFilter which fields can be chosen
AppearanceSelect the appearance of this field
Default ValueEnter each default value on a new line
Return ValueReturn the field object, field key, field name or field ID
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: Field Name

$fields = get_field('fields');

// my_textarea

Return Format: Field Key

$fields = get_field('fields');

// field_639f1b9f0e96f

Return Format: Field ID

$fields = get_field('fields');

// 275

Return Format: Field Object

$fields = get_field('fields');

/**
 * array(
 *     'ID'                => 275,
 *     'key'               => 'field_639f1b9f0e96f',
 *     'label'             => 'My Textarea',
 *     'name'              => 'my_textarea',
 *     'aria-label'        => '',
 *     'prefix'            => 'acf',
 *     'type'              => 'text',
 *     'value'             => null,
 *     'menu_order'        => 0,
 *     'instructions'      => '',
 *     'required'          => 0,
 *     'id'                => '',
 *     'class'             => '',
 *     'conditional_logic' => 0,
 *     'parent'            => 'group_639f1b9d2799b',
 *     'wrapper'           => array(
 *         'width' => '',
 *         'class' => '',
 *         'id'    => '',
 *     ),
 *     'default_value'     => '',
 *     'maxlength'         => '',
 *     'placeholder'       => '',
 *     'prepend'           => '',
 *     'append'            => '',
 * )
 */

Unformatted Value

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

// field_639f1b9f0e96f