How to scedule a Post using XMLRPC / metaWeblog.newPost ??
-
Hello,
I created a tool to manage a huge amount of blogs. This tool should also be able to scedule Postings. I saw that the metaWeblog.newPost command has the fields ‘dateCreated’ and ‘date_created_gmt’. If i assign a Date to it, i get no response from the xmlrpc.php. I figured out that it might be an error at the following code:
starting at line 2183:
// Do some timestamp voodoo if ( !empty( $content_struct['date_created_gmt'] ) ) $dateCreated = str_replace( 'Z', '', $content_struct['date_created_gmt']->getIso() ) . 'Z'; // We know this is supposed to be GMT, so we're going to slap that Z on there by force elseif ( !empty( $content_struct['dateCreated']) ) $dateCreated = $content_struct['dateCreated']->getIso();
$content_struct[‘dateCreated’] and $content_struct[‘date_created_gmt’] are NOT objects, they are just an sting, so the call of ->getIso() fails.
I removed the ->getIso() and the Post will be storred at database, but not marked as sceduled. It will be posted, with a date in future… how to fix it.
Or short: How i can scedule a Post using XMLRPC / metaWeblog.newPost
I hope anyone of u can help me solve this Problem. I dont want do store future posts at a database and post it by a cronjob.
greetings
Alexander Kurtz
- The topic ‘How to scedule a Post using XMLRPC / metaWeblog.newPost ??’ is closed to new replies.