Relative URLs are considered bad practice in WP, because of such issues and that they can be much more complex to migrate.
Basic approach to fixing this (not counting changing to absolute URLs everywhere) would be to filter the_content, while checking for is_feed(), and adjust links on the fly.
Related Posts:
- How to grab first image attached to post and display in RSS feed?
- Change the RSS feed image
- force feed readers to pick atom version
- How to add image in rss?
- Get content from one WordPress website to another
- Displaying images from external RSS feeds?
- Adding HTML within an image title attribute
- Can’t Display Featured Image in RSS Feed
- alt, title tags not showing
- How do I remove generated HTML around images in posts?
- Why html tags are being appended to my pictures?
- How to resolve – IE 6 ignores img “width” properties
- Trying to create a mouseover effect in html using Gutenberg editor
- How do I create an alternate RSS feed for tags with custom image sizes for MailChimp?
- How can I insert an image map into a WordPress blog post?
- Images will not display, when I call them up with html in wordpress, just two blank small spaces [closed]
- How to fix “.webp” being auto-added to the end of image urls
- Changing default img html markup but not in admin back-end?
- Modifying the HTML Output of Inserted Images
- Rewrite inline image markup
- Modify RSS – remove image and add text
- Can’t add image to site via php
- remove enclosure url from feed
- How can I get url from image tag in feed with fetch_feed?
- What exactly is the description field when uploading an image?
- HTML Img with data:image src gets sanitized in admin?
- Landing Page with HTML CSS JS and Images on wordpress
- How to link to img src using HTML email template in WordPress
- Relative path not working at all in WAMP local environment
- Display ajax preloader for large images within posts
- Garbled HTML pulled for page description “caption id=attachment…”
- Imagem resolution responsive
- where is images/image.jpg?
- Issues with the excerpt (wordcount/HTML/images)
- Parallax image problem
- Hover images and Videos
- Placing a background image with text over it
- Gutenberg block HTML image rendering override
- Each custom image size in custom upload directory?
- How to automatically add rounded corners to thumbnails?
- Get attachment/image info in JS
- How to limit number of images being printer out in “Set Featured Image” pop up?
- Pasting images removes class attribute
- How can I make all gallery images to open in a new window?
- Crop image without scaling or resizing with add_image_size()
- Can’t access ‘Store uploads in this folder’
- How to Display Featured Image Title and ALT Attribute
- Is it possible to recover featured images after WordPress export/import
- how to stop generating different image sizes from parser
- Link to large image version instead of original?
- Adding new size for Media screen in functions.php not working
- After installing ssl certificate images won’t show
- Random Size on Featured Image
- Handling image uploads without thickbox
- Loose images in uploads folder
- Using SRCSET with Images and Featured Images
- How to make a gallery with dynamic images from URLs?
- t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor
- Problem with images when no dimension in the URL [closed]
- some images not appearing on the website after migration [closed]
- How do I get my main image to stretch the full length of the screen?
- How to make my site use HTTPS for images or how to insert images as relative paths?
- HowTo: develop WP template with dynamic background image
- Featured Image or Post Thumbnail Displaying on index.php?
- Create an RSS feed of all posts
- Reply via email (mailto link) in RSS feed at the end of each post
- What did I do WRONG?
- Add retina “2x” in attribute “srcset”
- Change logo image condition based on url
- Hiding Media Source Links
- Random Characters in the end of every image url in post
- resize and crop thumbnail photos
- Broken thumbnails (sometimes) with TimThumb
- Can i have 2 separate Galleries on 2 separate pages each go to a DIFFERENT Attachment.php file?
- WordPress keeps truncating my feeds and I can’t stop it
- Why is my table background image not showing in wordpress?
- WordPress Multisite: Images moved to /sites/1?
- Site only working in browser where I created it
- wp_download_url() for dynamically generated image
- Full size image from srcset ALWAYS used on mobile DESPITE setting size of image in editor
- Run function before uploaded image is saved
- Are WP images responsive by default?
- wordpress images not showing properly
- How can I set different banner images using background cover at different breakpoints?
- variable crop option with add_image_size()
- Images with excerpt function
- How do I get resized thumbnails?
- Add feed to a custom page
- How do I embed an image at actual size?
- Uploading Full Size Image vs Resizing Before Upload
- How to include Related Posts in WP RSS feed
- Storing images on a local site
- Display image title and caption inside a single post
- Bug when uploading pictures with Arabic name characters?
- WordPress can’t get image url but both the attachment and the actual file are there
- if user role is x – show image – wordpress
- How to get recent posts from wordpress RSS feed
- Understanding images handeling
- Best practice for WordPress media image use
- Customize all image captions