WordPress.org

Plugin Directory

Custom Upload Dir

Keeps your uploaded files organized in smart folder structures.

How do I change base upload folder?

Since WP 3.5, by a setting in wp-config.php:

define('UPLOADS', WP_CONTENT_DIR.'/your-folder');

Just be aware that this will likely break all paths to your previously uploaded stuff.

How can I define my own tags?

Use the cud_generate_path-filter, like so:

function my_generate_path($template, $post_id){
    $my_tags = array('%tag1%','%tag2%');
    $replace = array($data, getData());
    $customdir = str_replace($tags, $replace, $template);
    return $customdir;
}
add_filter('cud_generate_path', 'my_generate_path');

Requires: 3.9 or higher
Compatible up to: 4.1.4
Last Updated: 2015-3-16
Active Installs: 6,000+

Ratings

4.5 out of 5 stars

Support

4 of 5 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,2,2
100,4,4 100,1,1 100,1,1
100,1,1
33,3,1
100,1,1
100,5,5
0,1,0 75,4,3
0,2,0 100,1,1 100,1,1 100,2,2
100,1,1
100,2,2
100,3,3
100,3,3
100,1,1
100,3,3
100,1,1
50,2,1
100,2,2
100,1,1
100,1,1
0,1,0
100,1,1
100,1,1 100,2,2