WordPress: How to upload image using script?


wordpressJust migrated an old site to WordPress. This old website contain more than 1200 images and if i migrate manually it will take a long time. So i wrote two script, first to extract all the images and it’s description from the old website to a file. And second script is a WordPress plugin script to upload the image to it’s page and set the image caption (useful for gallery and lightbox description) according to the old website description automatically.

wordpress-upload-image-script

How to upload image using script in WordPress

Advertisements

  • Here’s my sample code for upload image using script in WordPress.

Related posts:






Share this with your friends:-

Leave a Reply