Code Comments

Code Comments

Tips and short tutorials on various programming technologies

Code Comments RSS Feed
 
 
 
 

Publishing to a WordPress Blog via XML-RPC (Conclusion)

Please refer to this post for some background.

This series of posts has demonstrated how you can send XML-RPC requests to a WordPress server and get back responses. This allows you to do things like automatically post blog entries, modify them, delete them, etc. This is the type of thing that blogging editors do so you don’t have to use the blog’s editing tools directly. It can also be used for content-management and other creative purposes (but hopefully not devious ones).

One other thing to know is that you must enable XML-RPC in WordPress itself. To do this, go to the WordPress admin tools (i.e. http://blogname.com/wp-admin), go to Settings -> Writing and check the box at the bottom of the page (this is for WordPress 2.6 so it might be different in other versions).

This code may work with some other blogging platforms (for example, Movable Type), but I haven’t tested it so don’t know.

While this code is not perfect or comprehensive, it should be enough to get you started in the process of publishing via XML-RPC with C#. Please let me know if you would like me to expand on this content and/or publish it in other programming languages.

And as always, if you find this useful, please share it with others.

2 Responses to “Publishing to a WordPress Blog via XML-RPC (Conclusion)”

  1. 1
    toby:

    Great post! Reading though I see you have category add and remove, but I don’t see anything to add tags when you submit a page. Seems to be supported, any suggestions on how to add that to your code?

  2. 2
    Steve:

    Thanks, toby. I can look into it. My life is kind of crazy right now, but I’ll see if I can get to it soon.

Leave a Reply