I know how to upload multiple images into an existing post, but this is a different scenario. This is for a large catalog of assets, with each custom post-type post representing an image asset (thus a single image is assigned as the "featured image" for each post).

The whole system works great for one-at-a-time asset creation, but far too time-consuming. I need to be able to "batch" upload multiple images at once, then have a new post created for each image, then attach the image to the new post as the "featured image".

There will be no text content entered for each post - just some metadata and custom taxonomy assignments, so it should be possible to batch-assign the metadata and taxonomy during this batch creation process.

I've researched solutions from XML-RPC post creation (which doesn't usually handle image upload/assignment) to plugins that pull files from a server directory to the media library (which doesn't cover post creation), and jquery multiple file uploaders (that basically just dump files in a directory).

I am relatively versed in php, having built plugins and themes, but I'm stumped at how to handle this process, as it requires the first step of getting the files to the server in some temporary capacity, then generating posts based on the files uploaded, and assigning some identifying metadata to the whole batch.

I'm hoping this can be done in a custom admin panel, but if I have to do this outside of wp-admin, that's fine too...

Ideas?

link|improve this question
Did you ever find an answer to this? This would be perfect for me... – Sean Phillips Apr 10 at 22:08
I did... but the scenario evolved into an entire framework plugin for the project. It's not a particular short answer - I'd have to document the flow of multiple functions and hooks that all together accomplish this. – somatic May 2 at 7:45
In summary, I actually made a two-step process, as for editorial reasons it didn't make sense to actually spawn posts for everything a user uploaded. Instead, the user uploads all the images to a single "batch" post as attachments to that single post. Then, the batch is reviewed and each attachment is accepted/rejected - and once that "batch" post is actually published, a custom save routine takes each accepted attachment and uses wp_insert_post() to create a post with just that single attachment as its featured image. – somatic May 2 at 7:47
feedback

1 Answer

The "Cleanup uploads folder, Media Library db structure" Question has some plugin suggestions that might be related - albeit not exactly that doing what you ask for. But maybe the information is useful.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.