Path of images added to a "Page" resolving to localhost and not the siteurl
-
So I am working on my WordPress site in Wamp and transferring the build to my live web server after I make major changes.
Everything is fine apart from the fact that the “image path” of the images I add to a pages content, generated WP Media uploader, is still reflecting the local installation image path and not to the site_url path when I transfer over to the live site.
for example,
I add image1.jpg to the home page in my localhost site using WP media uploader. In the source code the link to the image is now:localhost/image1.jpg
Then I transfer the wordpress installation & database to my live site, and I would expect the image on the home page, path to now be:
https://website.com/image1.jpg
yet it is still “localhost/image.jpg”, which obviously results in a broken image. I can’t be changing the individual path to every image each time I upload my site. Anyone know why this is?
- The topic ‘Path of images added to a "Page" resolving to localhost and not the siteurl’ is closed to new replies.