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');
Related Posts:
- Image thumbnails not available post migration, but still accessible via direct URL – DB issue
- Images not found after migrating WordPress website
- Programmatically get images by URL and save in uploads folder
- How to extend the gallery block in Gutenberg?
- Set default image link target in Gutenberg image block
- WordPress adding scaled images that don’t exist (1536×1536 and 2048×2048)
- After Moving a Site to Another Domain, All Images Are Lost
- get_post_gallery with Gutenberg
- Organizing WP Pages based on old website database
- How to include externally hosted images into a gallery block
- Apply image width to tag
- How to link Gutenberg Gallery images To Media file automatically?
- How can I store an image in the database with Transients API?
- How to Add extra option to Image Block Settings?
- @wordpress/create-block image url in css
- Is there a shortcut to change bulk BMP images to JPG images in a site?
- How to Move Local Singlesite Database to Remote Multsite Database?
- Size article thumbnails and retrieve them directly from database
- WP 3.4 has missing photo data
- How to remove buttons from gutenberg toolbar
- Extend core block attributes in post content
- Gutenberg editor get post featured image by id
- hardcrop images in gutenberg “latest posts” block
- Consolidating two websites into one, but migrated images not appearing in Image Library
- Update image links in database
- Bulk edit Gutenberg single images to change from linking to media file to attachment page
- Trying to create a mouseover effect in html using Gutenberg editor
- Images not loading after migration
- Site migration – some images not displaying in Media Library
- Image upload appearing as broken images following server move
- Migration to WP – Couldn’t load image
- Prevent Image Pasting in RichText Component
- Multiple amp-image overlays. How to properly do this in wordpress?
- Update an image block style programatically
- I got an issue after i migrated a site
- Add width & height attributes to Gutenberg’s image output?
- update_post_meta attachment_image_alt description for Gutenberg
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- How to get the Gallery form/section just like in Gutenberg block?
- Upload media only to DB
- insert image alongwith with custom data via a frontend form
- Images are not showing after moving WordPress installation from server to localhost?
- Remove “%” from strings in serialized arrays in wp_postmeta
- Is there a wordpress filter to edit the markup of inline images?
- How to upload and style svg logo?
- Weird failing request
- How can I check if the first block is an image aligned left or right?
- Not seeing text alignment option in Image block
- Can’t see images in posts after migrating site to subdomain
- After Migration, images show up on a preview of the page but not the actual page [closed]
- For a complete backup, is it enough to copy htdocs and export database?
- How to replace post image url before posting using api?
- Place image caption outside of figure tag (Gutenburg Image Markup)
- Change Image Size option in the settings in bulk
- How to disable a WP Image Block to link to itself?
- Can I achieve this with WordPress?
- get_post_gallery with Gutenberg
- How to join Caption AND Description Meta Fields as one combined-caption in Image Block
- Using srcsets in a custom block
- Do I need to re-register all my images in the media library after a migration?
- Save media files (images) to database instead of the filesystem
- Rebuilding core image block
- SQL: How to find all attachments that are not used in any posts/pages/custom_post_types
- Import images from old WordPress site into new site
- After migration, all featured images using accentued characters in their file names are displayed “blanked”
- Convert multiple image blocks to gallery block in Gutenberg?
- WordPress After migration some images src is empty
- get_post_gallery with Gutenberg
- Images 404 after wp migration to a subdomain
- JPG Image extension not inserting into Custom table of wp
- Blank image thumbnails in media library
- How to delete images from database with product
- Broken images/videos after migration – DIVI theme- works ok on Mac OS
- Theme page headers and rotator images not assigned after website migration
- Images in plugin broken after URL migration
- How can I use images that are on the server locally?
- Images not showing after moving site
- Post migration – images do not display
- How do I mitigate the forward slash problem for URLs of images after a WP migration?
- Images will not attach to posts after site migration
- Why images are disappearing on WordPress web site?
- Custom filename when pasting an image from clipboard
- Multisite image URLs incorrect in editor
- Gutenberg block HTML image rendering override
- Get field added via attachment_fields_to_edit filter in Gutenberg
- Define how an attached image is rendered
- “Media Library” shows as empty, despite images being present
- Image size not showing up in ‘wp/v2/media’
- How to add images inside an item of a list in Gutenberg
- Images Not Displaying On Page or Media Gallery After Multisite Migration
- Adding or replacing image size
- Extend the list view in gutenberg editor?
- remove enclosure url from feed
- wordpress site – using custom database and PHP
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- What is required in the hosting environment for WordPress to process an image into multiple sizes?
- Delete all posts that do NOT have a specific tag
- Show (print) featured image all dimensions (height, width)
- Get an image from url, resize it, and save on a custom folder (not the media library)
- IMG size is set to width=”964px” or “100%”, but is shown as “634px” in browser