Well, after a little research I realized that it is an (inconvenient) feature of WordPress to store the absolute path of the images and other files, something that I completely disagree with.
In any case, I discovered this plugin https://wordpress.org/plugins/root-relative-urls/.
It does not fix the urls of files already inserted, but it corrects those of the new files.
For a new installation, I understand then that this is an essential plugin.
In the meantime, I’ll try to figure out how to fix all the fields of all tables that contain an absolute path.
Related Posts:
- update image path with words starting uppercase to lowercase chars
- SQL query to remove first image in all posts
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- What are the benefits of setting a “featured image” for a WP blog post?
- preg_replace not removed “class”
- How to only publish posts with image in it
- Uploading images in custom post form
- Upload attachment from external site
- Make insterted image point to post url instead of attachment page
- Copying post thumbnail to custom field
- Get URL from all images in a post
- Disable posts generated from image uploads
- how to give multiple post thumbnails to a post
- Posts page not showing correct image
- Images showing up in Post Editor, but not in Published Post
- How to allow multiple thumbnail upload for Posts?
- Image behind the post’s title
- Queries take 120+ seconds on my large WordPress site
- get_children returns older images
- How to display post title inside thumbnail?
- Database hacked – random posts are modified
- How to remove text and retain in caption image using the_content function
- How to retrieve certain number of images from a wordpress post?
- Need to change all links in page content but not in post content
- Can’t update WordPress Page if post_content is Empty
- Restore woocommerce orders
- Show more than 200 images in one post
- How to get all inline images in post content? [duplicate]
- Hide thumbnail if there is a gallery on the post
- How to select particular month post from table and update the post status using MySQL?
- How do post IDs work in WordPress?
- Image on rss feed on post
- Change the background of each post according to the category
- Get author posts count after excluding a category
- How to Featured content with images in home page?
- Where to insert the other site image url for our wordpress post
- select post preview image from nextgen gallery
- How to show a featured image inside a post in only 1 single category
- Inserting Media to WordPress Posts
- Author Avatar as default first image
- Link post images to post
- How to get the next and previous image title from attachment or gallery?
- Attachment image single page
- How to change the order of elements within a post?
- Only show featured image on exerpt and exclude images in post
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- get last post’s link with SQL query
- How to call WordPress First Image Post or else Attached Image or Default
- Regarding Posts
- how can display a post on home screen without images
- query for filtering published posts?
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Deleting post tags removes categories
- Changing The Default Header POST Title and Description text by category in wordpress
- Return records between two meta datetimes saved as strings
- WP query taxonomy optimization
- Site/Post preview is not working on all social media
- How to exclude native lazy loading from first image in post content?
- Rewrite image links from attachment id to attachment link
- Delete media from the post but keep my featured image and post
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- unable to write to the database while uploading images
- MYSQL: Create SQL query to search for string and replace
- Query to fetch custom taxonomy along with post title
- Pinterest button shows image options from different posts
- Change the size of the featured image for post?
- Mysql update menu_order problem
- Display image gallery if more than 1 image
- How do I fix broken links to images in imported posts’ post_content?
- Bulk find & replace on WordPress posts/pages (minus image paths)
- Thumbnails and images in the blog post are not loading
- Modified core/image rendering not showing in posts – only on pages
- Post images are not displayed in media library
- Delete attached images from posts
- WordPress MySQL Search and replace with wildcard?
- Blog featured images disappeared on my homepage
- Blog images not showing on homepage
- Center crop the feature image
- Schedule image post on download
- Add postmeta to all blog posts
- Add another feature image box
- Dev and prod on the same database- dev version active for IOS
- load post data into mysql
- How to show category image if no featured image is set?
- How to make an image appear as a thumbnail in the blog post?
- Integrate video and iframe in a post type gallery
- Set featured image on creating new post
- Manipulating images inside post content
- SQL trigger failes with post_content
- how to create other sizes of original image in one go wordpress uploads
- Output wp_link_pages as raw url
- How can I alternate styling of images in a post? [closed]
- Embed image in post from external url
- Customizing individual images on posts
- Is possible to do this from function.php
- Stop images from being displayed on the front-end of the site
- Update all images url imported from HTML pages
- Converting Posts to Pages
- Relative Image Urls in Posts are starting from root – Not from WordPress Address (URL) at General Settings
- WordPress Media URLs?