Display an ACF Extended Templates selector as radio, checkbox or select field type.
Setting name | Description |
Allow Forms | Filter which templates can be chosen |
Appearance | Select the appearance of this field |
Default Value | Enter each default value on a new line |
Return Value | Return the template ID or template name |
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 |
Return Format: Template ID
$templates = get_field('templates');
// 6572
Return Format: Template Name
$templates = get_field('templates');
// my-template
Unformatted Value
$templates = get_field('templates', false, false);
// 6572