admin管理员组

文章数量:1313952

I am trying to use custom HTML in a widget and I can't make an img tag to work because I have no idea where to store the image.

Where does one store an image inside a WordPress website ? And not by "Upload Image", no. By using FTP. Where exactly do I have to store images so that I can link them to an img tag.

I am trying to use custom HTML in a widget and I can't make an img tag to work because I have no idea where to store the image.

Where does one store an image inside a WordPress website ? And not by "Upload Image", no. By using FTP. Where exactly do I have to store images so that I can link them to an img tag.

Share Improve this question asked Nov 26, 2020 at 17:31 Jorje12Jorje12 1033 bronze badges 1
  • Why not upload image? That would be the default way to store images in WordPress – kero Commented Nov 26, 2020 at 17:49
Add a comment  | 

2 Answers 2

Reset to default 0

To get img url first upload it to media library, then click on the img you want to use, and see the full url in the img details. see photo attached with a circle around the url of the img.

wordpress by default stores the images in folders by month and year on /wp-content/uploads/folder_named_year_month and the paths to where they are store can be seen in database on the table wp_posts and the thumbenails on wp_postmeta.

check this article for more info

本文标签: Where do I have to put an image in order to use in a Custom HTML img