We are currently on vacation until 21st July 2025, ticket responses maybe be longer than normal during this period, sorry for any inconvenience.

Importing images from Posts

Closed

Import WP Updated 3 months ago 1 Reply

Adam asked 3 months ago on May 21, 2025 at 7:36 am

I understand how to import a featured image from a post, but is it also possible to automatically import other images (img tags) found in the post? My use case is that I\\\’m trying to migrate from HubSpot to WordPress. All images (featured or otherwise) are stored in HubSpot and will need to be ported over. Ideallyl, it would import the image into the WordPress media and then update the img src to point to this new URL. Maybe that\\\’s asking too much, though. Thank you in advance.

J

James replied Support Agent

3 months ago on May 21, 2025 at 8:03 am

Hi Adam,

An addon can be found: https://github.com/jcollings/importwp-inline-media, if you download (have attached the plugin) and activate it by default it searches the post_content field in the importer and will search for img tags src attribute and add that image to the media library.

There is documentation on the readme on how to restrict tags and which urls it should download but this is all done using wordpress filters.

If you need more help just let me know.

James