JT Media Folders
·
A lightweight solution to add categorized folders to your WordPress Media Library. Works with bulk selection. Optimized for the Gutenberg editor.
Features
- Folder Organization: Create, edit, and delete media folders/categories
- AJAX Filtering: Filters media items using AJAX
- Bulk Operations: Assign multiple media items to folders using WordPress bulk selection (Grid + List view)
- Made for Gutenberg: Full integration with the Gutenberg editor (when inserting media into posts/pages)
- Hierarchical Structure: Support for nested folders (parent/child relationships)
- Lightweight: Plugin was developed with performance in mind
- Non-intrusive UI: Clean and simple user interface and controls that are mobile-friendly
- 100% free: This plugin is free to use, no paywalls or annoying notices
Creating Folders
- Go to Media > Library in your WordPress admin
- Click the “Add Folder” button in the left sidebar
- Enter a folder name and optional description
- Optionally select a parent folder for hierarchical organization
- Click “Save” to create the folder
Organizing Media
Individual Assignment:
- Click on any media item to edit it
- Select a folder from the “Folder” dropdown
- Save the changes
Bulk Assignment (Works in both List and Grid views):
List View:
- Select multiple media items using checkboxes
- Choose a folder from the dropdown in the sidebar’s “Bulk Actions” section
- Click “Assign Selected” to move all selected items to the chosen folder
Grid View:
- Click on media items to select them (they’ll show a blue border when selected)
- Choose a folder from the dropdown in the sidebar’s “Bulk Actions” section
- Click “Assign Selected” to move all selected items to the chosen folder
Managing Folders
- Edit: Click the pencil icon (✏️) next to any folder name
- Delete: Click the trash icon (🗑️) next to any folder name
- Smart Filter: Click on any folder name to filter the media library by that folder
- All Files: Click on “All Files” to show all media regardless of folder assignment
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- MySQL 5.6 or higher
Security
The plugin follows WordPress security best practices:
- Nonce verification for all AJAX requests
- Data sanitization and validation
- Capability checks for user permissions
- SQL injection prevention using $wpdb->prepare()
