Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
Did you ever find an answer to this? This would be perfect for me... – user15057 Apr 10 '12 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 '12 at 7:45
1  
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 '12 at 7:47

2 Answers

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.

share|improve this answer

I have the solution, i recently had used the following 1. Auto post from featured image 2. Fetch Featured image to insert in post

so I upload images through media and cretes the post with the name of picture as a title of the post. But the problem is that it's not showing the thumbnail when shared on facebook :(

share|improve this answer
2  
Could you add the code you have used? Without that it is hard to imagine what you actually did. – toscho Oct 14 '12 at 22:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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