First of all you should deactivate the month/year media link organization.
To do so go to Settings>Media in the wp-admin.
Uncheck the option “Organize my uploads into month- and year-based folders” and hit the save button.
Once you do this, the media will change from this pattern:
/wp-content/uploads/2017/12/bg.jpg
to this:
/wp-content/uploads/bg.jpg
In other words, WordPress will get the filename and create the url with it.
If you want to change this behavior you can use this plugin to do the job:
https://wordpress.org/plugins/custom-upload-dir/
More information on how to use this plugin is available in the plugin page and in this tutorial here:
https://www.hongkiat.com/blog/wordpress-custom-upload-dir/
Hi thanks you for your help.
I have see the plugin too but he is not update from 2 years :(.
if i uncheck the option “Organize my uploads into month- and year-based folders”.
Can i create all the folder i need inside the upload folder, and call my images from this custom folder?
There are some other options in the plugins library but this is the only one I’ve tested so far.
And yes, once you dismark that option you’ll be able to use the media url in a more friendly format.
The best way is modifing the uploads directory as you desire. Changing the name of the directory ‘uploads’ is recommended to improve security for your site as well.
The best way is modifing the uploads directory as you desire. Changing the name of the directory ‘uploads’ is recommended to improve security for your site as well.
Here is a simple and efective tutorial to make this changes.
Good luck!
-
This reply was modified 8 years, 4 months ago by
iraconira.
-
This reply was modified 8 years, 4 months ago by
iraconira.
-
This reply was modified 8 years, 4 months ago by
iraconira.