• Right now wordpress media file has url

    “mysite.com/wp-content/uploads/2021/08/’filename’ “

    I want to store it like

    “mysite.com/wp-content/uploads/file_category/’filename’ “

    Is there any plugin or hack to do it?

    • This topic was modified 3 years, 3 months ago by itsboss10.
    • This topic was modified 3 years, 3 months ago by itsboss10.
    • This topic was modified 3 years, 3 months ago by itsboss10. Reason: 3 edits to make question understandable
    • This topic was modified 3 years, 3 months ago by itsboss10.
    • This topic was modified 3 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic. And title decapped. Don't yell
Viewing 2 replies - 1 through 2 (of 2 total)
  • A few ways to change / things you can change here, depending on what you want.

    Easy way: Download a plugin (I’ve not used one before so can’t make a recommendation here, just google it!)

    Hard way (no plugin): You can add a line to your config file and specify your own folder. Try this (again, unconfirmed, it’s been a while since I’ve done this): https://premium.wpmudev.org/blog/change-default-wordpress-uploads-folder/

    Basic change: You can remove the dates from the URL by going to Settings > Media and uncheck the “Organize my uploads into month and year” Note that I’m not sure if this will update previously uploaded images, you’ll have to test. If it does you might need to go back and re-link all the images on your site.

    Either way, it’s always best to do this kind of a change right at the start of a site build.

    Good luck!

    Thread Starter itsboss10

    (@itsboss10)

    I guess, I did not phrase the question correctly…
    What I want is to have folders for storing media like file_category1, file_category2 etc… for uploading different media. I know some plugins which help us organize files in these type of folders but they do not change link(url) to the file.

    Like for file in category1 I want mysite.com/wp-content/uploads/file_category1/filename

    for file in category2 I want mysite.com/wp-content/uploads/file_category2/filename

    If not from wordpress is there any other way, I just want url to show to users

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to change media file url’ is closed to new replies.