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

I have a blog with all media stored in a folder called upload (organize media was disabled), I've activate it to organize new uploads by date. But how can i organize old files?

I want this because i need to migrate the site to a Wordpress MU site, and i need to have files organizated.

share|improve this question

3 Answers 3

You can hard-code this change for all your sites like this: 1. Create a new php file with a path like this: wp-content/mu-plugins/no_date_assets.php If the wp-content/mu-plugins folder does not already exist, you will have to manually create it. 2. In that file paste the following:


$uploads_use_yearmonth_folders = get_option( 'uploads_use_yearmonth_folders', 1 );

if ( $uploads_use_yearmonth_folders ) {
    update_option( 'uploads_use_yearmonth_folders', 0 );

That's all! This will make all future uploads not use the year/month folders.

share|improve this answer
up vote 1 down vote accepted

Thans but I've found the solution, what it need to do is to edit the site (Network -> Sites -> Edit -> Settings ) and change the following parameters:

Uploads Use Yearmonth Folders   0
Upload Path                     wp-content/blogs.dir/1/uploads
Fileupload Url        
share|improve this answer

Maybe this plugin can help:

share|improve this answer
An answer should be more than just a link to an external site. Please describe at least what the plugin does. And screenshots are upvote magnets. ;) – toscho Jun 14 '12 at 10:11
Thanks, but i wanted is to migrate files easily and keeping the one folder configuration. – Skatox Jun 18 '12 at 12:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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