Display an ACF Options Pages selector as radio, checkbox or select field type.
| Setting name | Description |
| Allow Forms | Filter which options pages can be chosen |
| Appearance | Select the appearance of this field |
| Default Value | Enter each default value on a new line |
| Return Value | Return the options page object or options page 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 |
$options_pages = get_field('options_pages');
/**
* array(
* 'page_title' => 'My Options Page',
* 'menu_title' => 'My Options Page',
* 'menu_slug' => 'my-options-page',
* 'capability' => 'edit_posts',
* 'parent_slug' => '',
* 'position' => null,
* 'icon_url' => '',
* 'redirect' => true,
* 'post_id' => 'options',
* 'autoload' => false,
* 'update_button' => 'Update',
* 'updated_message' => 'Options Updated',
* )
*/$options_pages = get_field('options_pages');
// my-options-page$options_pages = get_field('options_pages', false, false);
// my-options-page