How to change the url of the uploaded media
My client wants to change the URL of the uploaded media files as well as they want that the images and pdfs store in an organized way.
First let me tell you how do they want their uploaded media files to be organized in the server:
- As per their expectation, there will be two folders 1) projects 2) people inside wp-content/uploads. Each image and pdf related to a project will be stored in wp-content/uploads/projects and each image of people will be stored in wp-content/uploads/people
Now let’s talk about how they want the generated urls of uploaded media files:
- Let’s consider an example first: Suppose I have uploaded an image with the name “abc.jpeg” and it is a photo of a person. Currently, this photo will be stored and generate the following URL:
But our clients are looking for to have the following URL:
How can I achieve this?
Rayhanul Islam Rumel