Display an ACF Fields selector as radio, checkbox or select field type.
Setting name | Description |
Allow Forms | Filter which fields can be chosen |
Appearance | Select the appearance of this field |
Default Value | Enter each default value on a new line |
Return Value | Return the field object, field key, field name or field ID |
Allow Null | Allow empty value |
Layout | Choose the layout |
Toggle | Allow to toggle all values |
Allow Custom | Allow custom value |
Save Custom | Save custom value in the field settings |
Select multiple values | Allow multiple values selection |
Stylised UI | Enable Select2 UI style |
Value can then be retrieved using the common get_field()
function. Usage example:
$slug = get_field('fields');
// my_field