Support » Everything else WordPress » metaWeblog API: How do i publish a post with a different date?
9 years, 10 months 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?)
Okay… I just figured it out, the structure tag for post creation date is “dateCreated”. The problem is fixed now 🙂
9 years, 7 months ago
could we see the code snippet for that please?
8 years, 11 months 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.