Since (from what I understand) the issue only occurs to imported posts I suggest you try the plugin Search and Replace. It’s a quick and easy way to solve this problem.
WP stores the uploaded images in your database. Imported images probably direct to the old root, so you should change that to the new root. Search for the string '/wp-content/uploads' and replace all with '/wp/wp-content/uploads'. Be really careful with this plugin though, it’s a powerful one.
Related Posts:
- Media is not attached after import
- Getting Path To Uploaded Attachment Image After Upload
- InDesign to WordPress workflow
- Why doesn’t the WordPress Importer update posts?
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- WordPress import does not fetch images, but just links them
- Moving image attachment from post to another?
- Delivering a file instead of wordpress page
- How can I get an image from the uploads dir and enter it in the media library? [closed]
- Is there a plugin that allows a user of your site to get an email from you with an attachment?
- How to get all attachment image from post ?? WordPress
- How to get custom field image url of specific size
- How can i change an image’s author?
- Converting a simple plugin to be placed inside of functions.php
- Set attached to state
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- I am trying to match the wpallimport using the Xpath Filter
- How to get images from EDD post?
- How can I get full attachment url from wp_get_attachment_metadata?
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Converting Attachment to Images?
- Unable to activate wordpress importer after installing it
- Exporting and importing my WordPress database, but none of the plugin settings are importing
- Get the url of the full sized attachment image using post ID?
- Randomize attachment IDs
- Limit Number of Taxonomy Terms (Images) Displayed
- Why Won’t Exported Blog From One Site Import Into New Site?
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- How to change File URL in file uploaded to s3 compatible storage with self written plugin [closed]
- CSV syntax for WP All Import upload without ACF
- WP ALL Import plugin – import data from certain ids
- How to export post 2 posts WordPress plugin data [closed]
- WP All Import – Execute Imports
- import posts with dutch/special letters
- Permalinks stopped working after migration with WP all-in-one migration plugin
- WordPress and a secondary database?
- How to export all content with feature images?
- Import Instagram post to WordPress blog post
- Search by Attachment ID
- JSON API Plugin not showing Attachments id reused
- Designing a plugin that uses an iFrame to process data in admin
- Plugin generating unexpected output – on WP mysql dump import
- “After file loaded” action
- WordPress does not allow me to upload a .xml file
- Import Recent Posts Only and Ignore old ones if exist
- Save log for imports in WordPress database – options-table, custom post type or other place?
- Import a folder containing HTML files and images to WordPress
- submit two file input fields in the same form
- Get all image in media Gallery with alt/title?
- Bulk Edit Media Library alt, caption, image names
- How do I add a medium to the WordPress database with my own plugin?
- best way to upload a large file to wordpress using wp all import
- Add a WooCommerce Product Variant with attributes programmatically
- Import only new articles from Joomla to WordPress
- Attachments plugin cannot click media library button [closed]
- How to force regenerate thumbnails in WordPress posts?
- How to Insert images in WordPress using code
- Differentiate attachment pages in search results
- How to show post attachment image
- Import tumblr post to wordpress blog
- phpBB 3 to bbPress
- Building custom pages with a video player
- How to export and import plugin data through WordPress tools option
- How to prevent WP All Export from wrapping XML nodes in CDATA? [closed]
- Can you open a media frame to sellect an attachment to associate with another attachment you are editing on an existing media frame?
- WordPress sharding: which multi-DB plugin to use?
- Is there a plugin to show the code tag button on the visual editor?
- How do I check what plugins are enabled via the database?
- Posts wont expire
- Add Top-Level Menu that opens URL
- Override Theme CSS with CSS from a plugin
- How to limit 1 image per post on homepage only?
- Popup Cookie WordPress select language and section (Elementor)
- Remove filter from WordPress Plugin
- Gutenberg List Extension Block
- Regenerate images with automatic ALT and TITLE attributes
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Combine scripts from all extensions of the plugin when an extension is activated
- Access WordPress data from external PHP application.
- Checkbox conflict in my custom plugin admin page
- How to embed .mp4 videos in a WordPress post?
- Detailed form plugin, with ability to export to excel etc. OR edit PDF live? [closed]
- What is the best way to cache pages on WordPress
- Stop wordpress from requesting external jquery from googleapi
- is_front_page breaks with url parameters generated by a plugin
- How to pass all received IDs through the function for in_category
- I want the Widget title to set below contant
- Storing Array of values into wordpress options
- I have a plugin that applies a Google translation to my page–how does the browser know which language to display?
- Filter the HTML content of plugin
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- A plugin is giving me “You do not have sufficient permissions to access this page.” error
- Why is this plugin not working?
- pre-upload text and video for the future
- Zigconnect Plugin: Allowing editors to remove connections
- Need Header slider plugin recommendation [closed]
- Plugin to Display Content on Page
- Can we install 3d product configurator into wordpress
- Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads