Bulk upload images to wordpress?

PhillipMarlow

Pheasant Heavy Breathing
Mar 14, 2008
1,762
34
0
I've got a folder of around 500 or so images I'd like to upload in bulk to a wordpress blog and create a post for each image. Can anybody recommend a script or solution to do this?

tits.jpg
 


my suggestion

Zip up all your images, transfer that one zip/gz file (or two or three... depending on size) to your server, and dump them all into your "uploads" directory (or whatever).

I'm guessing you'll need a custom script to have a post for each image. But that wouldn't be hard, just an insert into the wp_posts table with the right data and the filename on disk of your image.

Pseudocode would be something like:

Code:
foreach (image file) {
    insert into posts ( ... stuff... filename of image  ... )
}
 
  • Like
Reactions: PhillipMarlow
Sorry I don't have 10 posts yet so you'll have to type in my links.

If you want to go the plugin route, you can do this with 2 WP plugins.

The first one you'll need is NextGEN Gallery, which allows you to bulk upload images and make them into a gallery:
wordpress(dot)org/extend/plugins/nextgen-gallery/

The second one adds a little extra functionality to NextGEN Gallery, and creates posts for each image in a gallery. It also can make dynamic galleries that link to each image post.

Wordpress Photo Page Creator Plugin
www(dot)kitania(dot)de/wp/?p=3

Hope that helps.
 
  • Like
Reactions: PhillipMarlow