Advanced Custom Fields: File Picker
An Advanced Custom Field to pick a file from a chosen directory.
by David Smith · github.com/getdave/advanced-custom-fields-file-picker · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/getdave/advanced-custom-fields-file-picker/archive/refs/heads/master.zipReadme
ACF File Picker Field
An Advanced Custom Field to pick a file from a chosen directory.
Description
Provides a custom field type for Advanced Custom Fields which allows the user to pick a file from a directory within the currently active Theme.
The Plugin provides "globbing" functionality enabling the user to optionally filter which files within the chosen directory should be available for selection. Globbing rules follow the rules used by the PHP Glob function
Compatibility
This ACF field type is compatible with:
- ACF 5
Installation
- Copy the
acf-file_pickerfolder into yourwp-content/pluginsfolder - Activate the File Picker plugin via the plugins admin page
- Create a new field via ACF and select the File Picker type
- Provide the path the directory (relative to your Theme) containing the files you wish to pick from
- (Optionally) provide a globbing pattern to filter the files you wish to be available to choose from (defaults to all files)
Changelog
Please see readme.txt for changelog