Support » Everything else WordPress » metaWeblog API: How do i publish a post with a different date?

  • 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?)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Okay… I just figured it out, the structure tag for post creation date is “dateCreated”. The problem is fixed now 🙂

    could we see the code snippet for that please?
    nada

    Hi,

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘metaWeblog API: How do i publish a post with a different date?’ is closed to new replies.