Featured Images Fail on XML Import to Multi-Site Blog

Hi –

We did the standard XML export from a category of posts on one blog, so we could import at a new blog on a multi-site.

Our problem is that everthing imports fine except for two things: the images do not load into the media gallery, and there are no featured images set (important because the theme uses those). The images are viewable in the posts, but a check of the URLs shows they point back to the old site, and a simple update of URLs will not fix the featured images problem.

Anyone run into this and found a fix? Your help appreciated.

– Scott

  • Philip John
    • DEV MAN’s Apprentice

    Hmm that’s strange – that suggests that WP didn’t think there were any images to import….

    Did you see any errors on import?

    I take it you are importing a single WP into a sub-site of a network, yes?

    Have you tried testing out the import on another single install?

    Phil

  • socialtract
    • New Recruit

    Hi Phil –

    Thanks for your brainstorming — much appreciated.

    * Saw no errors on import

    * We set the original site with the category to import to multisite, so the original site is now on the multisite network too. Then we wanted to export a category from the original site and import it to the new subdomain site on the same network. I wonder if it is an issue with the same category from one multisite to the next on the same network?

    * Have not tried testing on a single install. Will try it now and report — thanks.

    Scott

  • Philip John
    • DEV MAN’s Apprentice

    We set the original site with the category to import to multisite, so the original site is now on the multisite network too.

    Maybe because it’s late in the day but I’m struggling to get my head around that! Could you explain in a little more detail please and I’ll see if that might explain anything.

    Thanks!

    Phil

  • socialtract
    • New Recruit

    Hi Phil –

    Just checked your idea about importing the same XML export to a different test site. I did that and the same problem exists — images are not imported (linked to — see below), and so no Featured Image is set.

    Here’s the code after the import for an image in the post:

    <a href="http://www.associaliving.com/2011/04/cutting-costs-without-cutting-value/at-apr2011-cuttingcosts/" rel="attachment wp-att-3689"><img class="alignleft size-full wp-image-3689" title="at-apr2011-cuttingcosts" src="http://www.associaliving.com/wp-content/uploads/2011/03/at-apr2011-cuttingcosts.jpg" alt="" width="270" height="170" /></a>

    Note that the img source in this code points to the old blog — the export location. That’s not what we want, but this occurs at both the test site I tried just now, and also at the desired location on the new multi-site blog.

    Thanks again for brainstorming — hope this helps clarify.

    – Scott

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.