WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Right now I cannot create any subfolder e.g. reviews, news, interviews etc. I have a lot of images in my media library and it's messy.

How can I create some folders and reorganize the images there?

share|improve this question
Basically, how do you create attachment taxonomies and display them in the media uploader? The first part is easy, just pass in 'attachment' as the post type, but the last part is interesting, I'd like to know myself. Modify your question and perhaps you'll gather more interest – Tom J Nowell Apr 19 '13 at 15:22
Yes, agreed with @TomJNowell, folders are not possible, AFAIK. There's an Answer here somewhere showing how to add custom taxonomies to Attachments, what's needed is adding the same dropdown filters as in Posts. – brasofilo Apr 19 '13 at 15:35
Hmm, I am wondering how can bigger websites that are using WP deal with that e.g. Techcrunch, Mashable? I have maybe 100 articles and every article has from 1-5 images and it's a big mess now. What can I do with that? I would like to stay with WP, becasue of other superior features when comapred with Joomla or Drupal. – Derfder Apr 19 '13 at 15:42

I too use have been using the Custom Upload Dir plugin that @sr83 mentioned to organise images and other upload files. It's a useful solution, although not as flexible as I would like.

It does provide a really great range of placeholders to build the folder path dynamically - including %file_ext%, %post_id%, %author%, %postname%, %post_type%, %year%, %monthnum%, %current_user%, %category%, etc -, however that structure remains set and cannot be modified on-the-fly during upload.

I find this helpful as a general day-to-day setting for authors contributing posts, but I find that I need to change the setup when I want to upload core static page images etc, then change it back again.

The following post provides some pointers for creating your own upload handler that - along with looking at how Custom Upload Dir plugin works - might give you the necessary pieces to build something more flexible yourself:

Specific upload folder for PDFs in custom Post type in WP multisite

share|improve this answer

protected by Pieter Goosen Jul 21 '15 at 12:24

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.