Question

Is there any example of the XML structure for WordPress' XMLRPC service? Specifically with the metaWeblog.newPost method inside.

Thanks a lot!

Was it helpful?

Solution

I think you'll find that the Atom Publishing Protocol ("AtomPub") is a much more well-defined, well-documented, easy to use API than Metaweblog's XMLRPC API. The format of AtomPub is that of the Atom Syndication Format which is very cleanly defined and has lots of implementations in many different languages.

AtomPub has been supported in WordPress since version 2.3, so unless you're on an older version than that, it should just be to POST your <entry> documents to your heart's desire.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top