Setting post tags in wordpress via XMLRPC API when submitting a post?
Posted
by aviv
on Stack Overflow
See other posts from Stack Overflow
or by aviv
Published on 2010-04-07T10:18:28Z
Indexed on
2010/04/07
10:23 UTC
Read the original article
Hit count: 330
Hi, I am trying to use WordPress API via XMLRPC to submit new posts. But i can't set the post tags (nor the categories).
echo "Adding $term to blog via XMLRPC ...";
$client = new IXR_Client("http://$blog.wordpress.com/xmlrpc.php");
$content = array('title'=>$term,
'description'=>"All about $term",
'category'=>'barvaz,moshe',
'tags'=>'tag1,tag2');
$client->query('metaWeblog.newPost', 0, $username, $password, $content, true);
$rv = $client->getResponse();
print_r($rv);
Any idea?
© Stack Overflow or respective owner