• Hi- I imported a bunch of posts from another one of my wordpress sites and everything transferred properly except the images. I noticed that the images are still being linked from the other site when I want them to transfer to my Media Library of this new site. Any idea what the solution is here? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am also having this same problem – have you gotten anywhere with solving this?

    wearefur

    (@wearefur)

    that happened to me.
    I had to manually pull all the images in and embed.

    I think it might have something to do with the download and embed all attachments checkbox.

    I had that selected but my site was so large it was taking days, so I gave up, unchecked the box and imported. All of images were from the old site.

    Currently when we export a post type, it seems that the post thumbnails are exported as id’s. It would be fantastic if these could be exported as url’s to the images as otherwise there is no way for a separate install to import the post data.

    currently, for posts with a thumbnail the below or similar is added to the <item>
    {{{
    <wp:postmeta>
    <wp:meta_key><![CDATA[_thumbnail_id]]></wp:meta_key>
    <wp:meta_value><![CDATA[9]]></wp:meta_value>
    </wp:postmeta>
    }}}

    I propose this is moved to <wp:attachment> or <wp:post_thumbnail> and the specific postmeta for _thumbnail_id removed from postmeta and re-created on each import.

    Problems with my suggestion that I’ve considered

    * Re-importing (w|c)ould create duplicate media. As the post has to exist for post-meta to be added. Maybe using the basename function we could check for existing media matching a file-name, maybe it’s an edge case… I think this is unlikely to be a large problem and it potentially empowers less technical users.
    * Some plugins would see no benefit as they use either custom metadata keys or multiple attached images (like WooCommerce). I’d suggest this could be mitigated by adding a filter of an array of strings that on import / export treats a list of fields as keys to treat as thumbnails)

    I’m experiencing the same problem as reported by the original poster. I tried it out on a XAMPP test setup of WordPress before attempting it on my real site.

    The outcome is that the media is transferred to the media uploads folders on the XAMPP WordPress, however, the posts still link back to the media folders on the old site. Only solution I see is to go through every post and modify the URL for every image. Was it wrong to expect the importer to take care of this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images did not import’ is closed to new replies.