admin管理员组

文章数量:1130349

After moving my site to a a subdomain for testing, everything works fine except the images. I can see the images in metaslider plugin but all the other images on the site are blank. All images are visible in the media library and the image URLs on my posts are correct, but nothing is showing.

After moving my site to a a subdomain for testing, everything works fine except the images. I can see the images in metaslider plugin but all the other images on the site are blank. All images are visible in the media library and the image URLs on my posts are correct, but nothing is showing.

Share Improve this question asked Jan 11, 2019 at 15:18 JohanCAnderssonJohanCAndersson 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

I'd use a Search/Replace plugin (I like "Better Search and Replace") to look for any old URLs. (That plugin has a 'test-but-don't-change' option.) If you find any old URL, use the same plugin to replace with the new URL.

Although you can use SQL commands to make the changes, the plugin has always worked better and faster and easier for me.

I'd also check the URLs for the media item on the Media page. Might be that the old URL is in there. The plugin will fix that.

After moving my site to a a subdomain for testing, everything works fine except the images. I can see the images in metaslider plugin but all the other images on the site are blank. All images are visible in the media library and the image URLs on my posts are correct, but nothing is showing.

After moving my site to a a subdomain for testing, everything works fine except the images. I can see the images in metaslider plugin but all the other images on the site are blank. All images are visible in the media library and the image URLs on my posts are correct, but nothing is showing.

Share Improve this question asked Jan 11, 2019 at 15:18 JohanCAnderssonJohanCAndersson 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

I'd use a Search/Replace plugin (I like "Better Search and Replace") to look for any old URLs. (That plugin has a 'test-but-don't-change' option.) If you find any old URL, use the same plugin to replace with the new URL.

Although you can use SQL commands to make the changes, the plugin has always worked better and faster and easier for me.

I'd also check the URLs for the media item on the Media page. Might be that the old URL is in there. The plugin will fix that.

本文标签: migrationCan39t see images in posts after migrating site to subdomain