Closed soisme closed 9 years ago
Oh just figured it out when I read http://codex.wordpress.org/Function_Reference/wp_insert_post
$wp_post_id = $wpClient->newPost($title, $message, array('terms' => array('category' => array($category)), 'tags_input' => 'tag1, tag2' ));
Could you give an example how it works in the new version? Been trying to figure it out for hours.
I tried the following they don't work.
$wpClient->newPost($title, $message, array('terms' => array('category' => array($category)), 'mt_keywords' => 'tag'));
$wpClient->newPost($title, $message, array('terms' => array('category' => array($category)), 'mt_keywords' => array('tag')));