Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is it possible to create multiple posts in one XML-RPC request? I've searched everywhere, but did not find any info. I suppose it isn't possible.

share|improve this question

1 Answer 1

Short answer? No.

There is a finite list of methods exposed by the XML-RPC interface, and the ones that allow you to create new posts dictate that you create one post at a time.

Given, you could always write your own method to allow for bulk post creation, but you should ask a new question if you want to go that route.

share|improve this answer
    
Yeah, I know I can extend XML-RPC, but the idea here was to do this without any development on the WP side. Too bad, we can't do that. Btw, as I know, wordpress doesn't even have any function to create multiple posts "locally", am I correct? I did not find any function for this. –  Fábio Neves Jul 13 '12 at 8:50
1  
Correct. The closest you will come is the WordPress importer which is, itself, a plugin. In any case, your best bet is to just loop through the posts and make multiple calls to the XML-RPC new post method. –  EAMann Jul 13 '12 at 13:53

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.