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 tell if Jetpack’s Photon is active?
- How to use load_plugin_textdomain from within a theme
- Syntax Highlighting Plugins and 3.2.1
- Problem Building a Simple Google Maps Plugin
- How to update billing_email when user_email is updated [closed]
- Plugin Using get_the_content Causing Issues With Tag
- Change plugin main file name (that is currently in the repo)
- Woocommerce Payments and App Not Syncing
- How to pull email and name from Flamingo plugin
- Can’t delete the two native plugins of WordPress
- Plugin init hook fires repeatedly
- Is there any hook for theme activation ? or something similar?
- Add Content to Content()
- Shortcode Attributes to Return different $_POST
- How do I change where a plugin pulls updates from?
- Remove value from array within post meta ajax admin
- How programatically cause uploads folder to be created?
- Using Amazon Book Gallery Plugins in WordPress [closed]
- Could add_query_arg() redirect user to external site?
- Does anyone know why my SEO and title become one?
- Help to create function that changes name in the certificate of the sensei lms
- Get Shortcode output to database for static post_content
- After migrating with duplicator all scripts are still tied to old CDN
- How to prevent redoing get_posts queries and make results available to other scripts?
- strtotime not working
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Optimized PHP & WordPress settings for speed/performance?
- Speeding up WordPress on a Local Network
- how change my menu on submenu
- Adding custom cron_schedule prior to wp_schedule_event
- Capturing POST data
- Auto play audio using WP Maintenance Mode Plugin [closed]
- Plugin to allow for recurrent subscription + exclusive content
- Plugin LDAP Authentication 2 In stallation ploblem
- woocommerce how to get cat id in content-product.php
- How to use WP-reCAPTCHA on a form