
Rootstuff Media Folders
v1.2.3atomjb · 2026年11月13日 上架
Organize your media library into real folders on the server — not virtual ones. Files are physically moved and every database path is updated.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 151
- 最近更新
- 2026年11月13日
需要 WordPress 6.0+已测试到 7.0.9PHP 7.4+
贡献者
截图





Most media folder plugins are virtual: they organize the media library screen but never touch the files on your server, which stay in year/month folders. Rootstuff Media Folders is different — folders are real directories inside wp-content/uploads, and the plugin keeps WordPress fully consistent when files move:
- Moves the original file and every generated thumbnail size
- Updates
_wp_attached_fileand attachment metadata - Updates the attachment GUID (optional)
- Rewrites file URLs in your post content (optional)
- Creates 301 redirects from the old file location (optional), served automatically for any moved file
- Uploads go directly into the folder selected in the tree — no upload-then-move step; a default upload folder can also be set for everywhere else
Because the filesystem itself is the source of truth, there is no folder taxonomy to fall out of sync — what you see is what is actually on your server. This is ideal for sites migrated from static HTML where files must keep a meaningful directory structure.
Features
- Folder tree sidebar in the media library (grid and list mode) with expandable nested folders and file counts
- Live folder search that filters the tree as you type, with match highlighting (Enter opens the first match)
- Drag and drop: drag files onto a folder to physically move them (multi-select supported); drag folders onto folders to restructure the tree
- Inline management: create, rename, and delete folders right in the tree — no page reloads
- Folder Settings screen (under Media) with plugin settings and the redirect log
- Folder filter dropdown in the media modal (post editor)
- Move to folder… bulk action in the media library list view
- Folder field on every attachment’s edit screen and in the media modal
- Folder column in the media library list table
- Renaming a folder updates every attachment inside it (at any depth) and adds a single prefix redirect
- Redirect chains are collapsed automatically (AB then BC becomes AC)
- Developer hooks:
rsmf_attachment_moved,rsmf_folder_created,rsmf_folder_renamed,rsmf_folder_deleted,rsmf_upload_folder,rsmf_move_capability,rsmf_manage_capability
What it deliberately does not do
- It never overwrites an existing file — moves that would collide are skipped with a clear error.
- Only empty folders can be deleted.
- Post meta is not rewritten automatically (it may contain serialized data). Use the
rsmf_attachment_movedaction to update custom storage.