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
- removing inline styles from wp-caption div
- How to get Images included in Post
- Find the post an attachment is attached to
- Post slugs and images cannot have same name?
- Search & Remove Specific Shortcode From All Posts
- Download external images if post is publish
- Display posts for a single post format
- How do I sort (order) the results from `get_children()`?
- Can I load posts via Ajax?
- Unattaching images from a post
- how to display post content without post image?
- How to wrap every image in a post with a div?
- Get post embedded image caption
- how to grab first link in post… and of course call it
- Load post content into div with ajax
- Add an image box besides featured image?
- Limit function to specific post category
- Remove inline width from figure
- Remove permalink from images when inserting into post
- Reset/Reorder posts ID in the MySQL wp_posts table
- WordPress Theory Lesson – Image Columns within posts with alignment?
- Show featured image next to post-teasers in Genesis Framework?
- Get image from post’s gallery
- Image Insert into posts and pages not working after 3.2.1 update
- Copying and pasting emoji in a wordpress post
- How to display featured image without it appearing in post?
- Featured Image uploaded, attached and set but only appearing in the media library
- creating front end image uploader that uploads images as posts
- Errors when uploading images in WP 3.5
- Get all attachment by post excluding featured and content inside
- wp-cli post create & media import issues
- Get user categories with most posts in it
- Get attachments for posts that belongs to a specific category
- Get all images in post and comments like Twitter before post title
- Issue where WP Featured Image will not display
- Custom order for Mysql array
- List authors with the last post title and order by last post date
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- Order posts alphabetically: how to set order=asc in mysql query?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- What happens if I delete all the rows that represents a post revision from the posts table into WordPress database?
- Thumbnail Image to go in the post aswell
- Remove Featured Image & All Media Uploaded to the Post
- preg_replace not removed “class”
- Upload attachment from external site
- Copying post thumbnail to custom field
- Get URL from all images in a post
- Disable posts generated from image uploads
- Images showing up in Post Editor, but not in Published Post
- Image behind the post’s title
- Queries take 120+ seconds on my large WordPress site
- Database hacked – random posts are modified
- How to retrieve certain number of images from a wordpress post?
- Restore woocommerce orders
- Show more than 200 images in one post
- Hide thumbnail if there is a gallery on the post
- How do post IDs work in WordPress?
- Image on rss feed on post
- Change the background of each post according to the category
- Where to insert the other site image url for our wordpress post
- select post preview image from nextgen gallery
- How to get the next and previous image title from attachment or gallery?
- How to change the order of elements within a post?
- How to call WordPress First Image Post or else Attached Image or Default
- Regarding Posts
- query for filtering published posts?
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- Query to fetch custom taxonomy along with post title
- 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?
- Blog featured images disappeared on my homepage
- Center crop the feature image
- Add another feature image box
- load post data into mysql
- How to make an image appear as a thumbnail in the blog post?
- Set featured image on creating new post
- How can I alternate styling of images in a post? [closed]
- Customizing individual images on posts
- Stop images from being displayed on the front-end of the site
- Update all images url imported from HTML pages
- Converting Posts to Pages
- How to change the publishing date of each posts?
- Featured Images link to post parent
- Post thumbnail dependant on category
- Latest news mini images
- How do I insert a custom field in a user submitted post?
- Only show posts with image and the correct ammount of posts in loop
- Extra Theme – Fit image inside of Featured Post Slider
- Get attachment if matches a variable
- Full width images within post content
- If meta_key exists then don’t select this post?
- Broken images after importing posts and opening in Gutenberg
- Search doesn’t display posts with images
- Displaying all images from a WordPress post (including media library)
- How to move all images in a post to a single gallery for a bunch of posts?
- Inside post image title has been posting as a post title on my main post page
- Optimize blog that serves hundred of images and videos