• Hi Guys,

    A complex one here!

    Basically I have a website that I’m moving over to wordpress, I have to import a hell of alot of products, which I have done succesfully, HOWEVER, I also have hundreds of images I have to move over too.

    I need to move these images, and associate these to the relevant products.
    The products are simple posts with the ‘product’ post type.

    How would I accomplish this?
    I’ve got some code that moves the images, and adds it to the ‘media’ library, but adding this newly added image to a product doesn’t seem to work, im obviously missing a setting in the database which allows this!

    Regards,
    Joe.

The topic ‘Importing images into the database using PHP and Mysql’ is closed to new replies.