How to avoid images appear as post in google search?

This is because your attachment pages are being indexed by Google. A simple fix would be to install the WordPress SEO plugin and use it to redirect the attachment page URLs to the original media (your images). After you install the plugin, go to “Search Appearance”, then click the “Media” tab, and toggle the “Redirect … Read more

A query to substitute images paths in gutenberg (website migration)?

I just found out the reason. It’s because I’m using ACF Pro as Blocks. The data will be written in database in json format, and the urls will escape all the slashes ad double quotes. So for example src=\”http:\/\/dev.example.com\/website\/wp-content\/uploads\/2019\/10\/identity.jpg\” So I should add a row like this: update wp_posts set post_content = replace(post_content,’http:\/\/dev.example.com\/website’, ‘http:\/\/www.website.com’);