The filed selector field allows the selection of other custom fields. This is useful in situations where you want to give the user powerful display options. You could, for example, allow the user to select which custom fields are displayed in a post.
This ACF field type is compatible with both ACF 4 and ACF 5.
Installing this plugin automatically is the easiest option. You can install the plugin automatically by going to the plugins section in WordPress and clicking Add New. Type “ACF Field Selector” in the search bar and install the plugin by clicking the Install Now button.
- Copy the
acf-field-selector-fieldfolder into your
- Activate the Google Field Selector plugin via the plugins admin page
- Create a new field via ACF and select the Role Selector type
- Please refer to the description for more info regarding the field type settings
For developers I’ve included a filter which allows you to further filter selected fields. At the moment this filter is used to make sure that included and excluded types and groups are reflected in the selectable list.
add_filter( 'acffsf/item_filters', 'selectable_item_filter', 10, 2 )
The first parameter is the list of items to modify, the second is the setting field.
Contributors & Developers
“ACF: Field Selector” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- WordPress 4.2 compatibility check
- Restructured the code
- Compatibility with 4.1
- Made sure search is case-insensitive
- Made sure value was json decoded when returned to the_field
- Complete rewrite with custom controls
- Added ACF 5 Support
- Removed ACF 3 Support
- Initial Release.