XML-RPC adding publishing date to new post? (4 posts)

  1. anty
    Posted 8 years ago #

    I'm currently experimenting with XML-RPC and discovered that you can use <title> and <category> tags within the newPost() function. But I couldn't find a source that says which commands are available and especially if it is possible to set a publishing date for the new post?

    Thanks for any answer,


  2. anty
    Posted 8 years ago #

    ok, as far as I have discovered is there no way to add a date. So I have implented it on my own, maybe the wordpress developer can consider implementing their own standard instead of accepting only other xml-rpc standards...
    It would be nice to be able to add a new category with xml-rpc and to add a publish-date.
    Here you get a description what I have done to implement the code, and also *.zip file to download and use it right now: http://www.anty.at/misc/wp_xmlrpc_timestamp/

    Maybe someone can move this to the "request"-forum?

  3. pidge
    Posted 8 years ago #

    Why not use the metaweblog API newPost method and pass in the appropriate fields (title and date). Here is a link to the MT API


    (I could not find the original doc at SA website).

    The dateCreated param takes ISO 8601 date.

  4. Callum Macdonald
    Posted 8 years ago #

    I can confirm this works for me, I have successfully used the metaBlog API and it accepts a date. One thing to note though, the date format is not 100% ISO 8601, it doesn't accept a time zone.

Topic Closed

This topic has been closed to new replies.

About this Topic