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.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
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.
Method 2
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
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0
