WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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

When creating a new network site, by default the site option Uploads Use Yearmonth Folders is on (set to 1). I have to set it to 0 each time I create a new site. This isn't horrid, but is it possible to make this the default for newly created sites? Perhaps a hook or something I am overlooking?

share|improve this question
up vote 4 down vote accepted

You could just change the option after the blog is created:

add_action('wpmu_new_blog', function($blog_id){
  update_option('uploads_use_yearmonth_folders', false);

Drop this code into a .php file inside wp-content/mu-plugins

share|improve this answer
Awesome, knew I had to be missing something wpmu-related. Thanks! – helenhousandi Sep 13 '11 at 3:12

I'm a little confused by your question. Are you referring to URLs? If so go to Settings > Permalinks and adjust from there.

share|improve this answer
No, not the URL. It's the option to sort uploads into year/month folders, which is on by default for new sites in a multisite setting and there's no media setting to turn it off. I have to set it either in the DB or in the network admin site settings screen (which is really just a light DB GUI). – helenhousandi Jul 15 '11 at 1:31

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.