metaWeblog API: How do i publish a post with a different date? (4 posts)

  1. Debajit
    Posted 8 years ago #

    Hi.. I've written a Python script which automatically pulls content from a feed and publishes them to a WordPress "links blog" via the MetaWeblog API.

    The problem I've run into is that everytime I add a new post, the post date is automatically set to the date that the post was published to WordPress. I'd like this date to be customizable.

    Is there any way to publish a new post with a date different from the date in which it is published (via the metaWeblog API)?

    (If there is a way, what is the structure that I should use for the MetaWeblog newPost() call?)

  2. Debajit
    Posted 8 years ago #

    Okay... I just figured it out, the structure tag for post creation date is "dateCreated". The problem is fixed now :)

  3. ladynada
    Posted 8 years ago #

    could we see the code snippet for that please?

  4. iansinke
    Posted 7 years ago #


    I'm trying to do the same thing, would you mind very much posting the code? I've googled all over, can't find anything on using python with the MetaWeblog API.

    Thanks, Ian

Topic Closed

This topic has been closed to new replies.

About this Topic