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.

  • Why not upload image? That would be the default way to store images in WordPress
    – kero
    Nov 26 '20 at 17:49

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.

img uploaded to media

  • Thank you. This works. Is this the only solution ?
    – Jorje12
    Nov 27 '20 at 14:42
  • I use this option. What do you want to achieve? Nov 30 '20 at 18:24

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.