We help IT Professionals succeed at work.

Wordpress Media Organization Problems

Computer Guy
Computer Guy asked
on
Hi,

I am creating a WordPress site for myself. For the "main content" images such as slider or social media icons, I don't like the uploaded files URL and was looking for some different options.

When I view the source it is "wp-content/uploads/2015/01/fb.png"

Is there a way to upload it so it can be like this "wp-content/images/social-media-icons/" or "wp-content/images/slider-images/" because I don't need the date on social media icons or the content images.
Comment
Watch Question

Don't talk to me.
Commented:
There's all kinds of tutorials out there for this.  WP Beginner has a pretty comprehensive one:

http://www.wpbeginner.com/wp-tutorials/how-to-change-the-default-media-upload-location-in-wordpress-3-5/

Essentially you have to add a line to the wp-config.php file and also turn off date-based archives in Settings | Media. However, these instructions will only add files to the base folder defined in the steps above.  If you want to subdivide things the way you indicate in your question, you have to write a lot of extra function hooks and do some manual organizing.

Commented:
In your wp-admin, go to Settings > Media and uncheck the "Organize my uploads into month- and year-based folders".

Commented:
Any images you've already added will not change the url / location, but all new ones added will not have the date in it.

Author

Commented:
Do you think it is Ok to have my uploads folder here. domain.com/images
Jason C. LevineDon't talk to me.

Commented:
Nothing wrong with it in theory.

In practice, this is a pretty good way to discover who makes assumptions about where the WordPress upload folder is and who uses the system variables correctly to write paths.  I can see a lesser-skilled plugin/theme writer making the first mistake.