Home how to use images in wordpress by local link?

# how to use images in wordpress by local link?

K. ossama
1#
K. ossama Published in 2018-01-12 20:24:10Z
 In this code, I wanna use an internal image that is saved in my laptop. The code used is copied and it was using an external link. The problem is the image doesn't appear after changing the path, so tell me if I missed something. Thanks in advance 

Name

( Age)

 and here is the original code :  

Thomash

( CEO)


hutuh
2#
 I see that the paths are different, in this case, I would suggest using the same folder for the image (themes or uploads). If you want to use the "themes" folder in both environments(web and localhost), you can use like this: 
 Now if you would like to keep on the "uploads" folder, you can do this: 
 Using \$upload_dir['basedir'] you get the full url "http://yourwebsite/wp-content/uploads/ or http://localhost/wp-content/uploads/";