I'm trying to set the post_date via XML-RPC and keep getting an error saying the XML isn't formatted properly. The code goes something like:
$post = get_post( $post_id );
$response = $client->query(
'wp.editPost',
array(
0,
$user,
$pw,
array(
'post_date' => $post->post_date
)
)
);
I'm hitting the same issue with wp.newPost
. I know the date should be formatted ISO8601 but I'm just having no luck getting it formatted right.
,
in here: ` 'wp.editPost' array` between the Array and the method. You should turn on your debugging environment to catch typos and (even better), use a decent IDE.