Flexa Media Folders
·
Organize the WordPress Media Library into drag-and-drop folders with a fast React tree, color labels, and a REST API.
Flexa Media Folders adds a hierarchical, drag-and-drop folder tree to the WordPress Media Library. Group images, videos, documents and any other attachment into nested folders, then filter the library to a single folder with one click – in the grid view, the list view, and the media picker inside the post editor.
Folders are stored in two dedicated, indexed database tables, so your wp_term* tables stay clean and the tree loads fast even with thousands of files.
Features
- Hierarchical folder tree – create unlimited nested folders, rename them, and reorder them by drag-and-drop.
- Drag attachments into folders – drag an item from the Media Library straight onto a folder.
- Works everywhere the Media Library does – the folder sidebar appears on the Media grid, the list view (
upload.php), and the media modal in both the block editor and the Classic Editor. - One-click filtering – click a folder to filter the library to it, plus built-in "All files" and "Uncategorized" views.
- Color labels – assign one of 18 colors to any folder from the right-click menu to spot it at a glance.
- Full context menu – New Folder, Rename, Cut, Paste, Delete and Change Color, all from a right-click.
- File counts – each folder can show how many attachments it contains (toggle in Settings).
- Folder search – filter the folder tree as you type.
- Settings page – choose a default folder for new uploads (none / last used / a specific folder), set the folder sort order, toggle file counts, and exclude specific post types from showing the sidebar.
- Dark mode – the tree automatically follows your WordPress admin color scheme.
- Accessible – full ARIA tree semantics, keyboard navigation, and visible focus styles.
- Translation ready – every string is internationalized and a
.pottemplate is bundled. - REST API – all screens are powered by a REST API under
/wp-json/flexa-mf/v1/, so external integrations and your own code can read and manage folders too. - WP-CLI – manage folders and reset plugin data from the command line with
wp flexa-mf. - Clean uninstall – a Settings danger zone (and
wp flexa-mf reset) wipes all plugin data on demand; uninstalling the plugin drops its tables. Your media files are never touched.
Source code for compiled JavaScript and CSS
The plugin ships with minified/compiled JavaScript and CSS in assets/dist/. The human-readable source code for these assets is publicly available and maintained at:
https://github.com/flexatech/flexa-media-folders
