• Resolved kb0wwp

    (@kb0wwp)


    I have 2600+ products I’ve imported into a new website using Wootheme’s product importer. Unfortunately, it did not bring the attachments along with. I’d like to use this plugin to import the attachments, but the Post IDs of the products have changed. Does the attachment import use the <wp:post_parent> id for the import? Will the import work, or will it bollocks things up?

    https://wordpress.org/plugins/wp-attachment-export/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pete

    (@helvetian)

    Hi there,

    yes, the export file contains all the data contained in a standard WP export, including the <wp:post_parent> field.

    If your post ID’s have changed you will likely end up having attachments ‘attached’ to the wrong posts/products. It will ‘bollock things up’.

    What you could do is do a search/replace in the export file, assigning 0 to every <wp:post_parent> (<wp:post_parent>0</wp:post_parent>). That will import the attachments without attaching them to a post. Still, you would have to re-attach all the featured images, galleries, product images and so on.

    HTH

    PS: Which WooTheme importer extension did you use?

    Thread Starter kb0wwp

    (@kb0wwp)

    Thanks. I’ll probably write a function to go through the huge file and compare the URL to the imported product, get the new ID, and replace the parent ID in the import file.

    I used WOOEXIM – WooCommerce Product Export Import Plugin (http://codecanyon.net/item/wooexim-woocommerce-product-export-import-plugin/10058191)

    BTW, thanks for the plugin, it will save an unimaginable number of hours of work.

    Plugin Author Pete

    (@helvetian)

    You’re welcome. Let me know if you need help with that function.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Importing Attachments’ is closed to new replies.