Blank WP.blogspot.com

Easy methods to Change the Default Media Add Location in WordPress three.5

The brand new Media Uploader in WordPress 3.5 might be a very powerful change of this launch. One other vital however much less talked about change is the disappearance of the choice to vary the add listing path from Settings. The rationale for eradicating this selection from the UI was that it's not as generally used as different choices. It additionally has the potential of making chaos if the person by chance adjustments it. Eradicating it would simplify the UI with only a examine field for yr/month folder group. On this publish we are going to present you how you can change the default media add location in WordPress three.5.

Word: This tutorial will not be for rookies. Use it provided that you realize what you might be doing.

With a view to change the default media add location, you must edit the wp-config.php file situated within the root listing of your WordPress set up. If you'd like add listing to be wp-content/information then you will have to position the next code in wp-config.php

 
outline( 'UPLOADS', 'wp-content/'.'information' ); 

If you'd like the add listing to be exterior wp-content, like http://www.instance.com/information/ then you must set add path in wp-config.php like this:

 
outline( 'UPLOADS', ''.'information' ); 

Bear in mind you may nonetheless select whether or not or not you need uploaded information to be organized in month/yr folders in Settings » Media.

Media Settings in WordPress 3.5

Hopefully you discovered this text to be useful. You probably have any questions, be at liberty to go away a remark beneath.

Supply:

Function Reference /wp_upload_dir – WordPress Codex

WordPress Trac #21720

Tutorials