So the titel says it all. I changed the name of my website and now all the photo's in the editingpage show up as boxes with blue question marks. But the website still works and shows the right images. The only way to fix it is to change the photo for a new one that is in the library but that's an extreme amount of work. Is there another way to fix this?

1 Answer 1


Try to install and activate the "Better Search Replace" plugin.

Once activated, go to Tools -> "Better Search Replace" in your WordPress dashboard.

Then, in the 'Search for' field, enter your old domain name (e.g., oldsite.com), and in the 'Replace with' field, enter your new domain name (e.g., newsite.com).

Select all the tables (or at least the posts table, if you’re sure that's where the issue is) and run a search/replace.

It's best if you do a 'dry run' first, which will show you what changes the plugin will make without actually making them. This is a great way to double-check that you're replacing the right thing.

And if you're satisfied with the dry run results, uncheck the dry run option and run the actual search/replace.

By the way, before doing all that, I strongly recommend that you backup your database first. This way, if something goes wrong while you're in the middle you will always have a restore point to go back to.

I hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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