how to post a post to different category using xml rpc
-
i ma using xml rpc to post to wordpress blog
its getting posted to category “uncategorized”
how can i post it to different categories say ‘abc’i have code
$XML = “<title>$title</title>”.
“<category>1,2</category>”.$params = array(”,”,$this->wordpress_username,$this->wordpress_password,$XML,true);
thanks
zahoor
Blog url: http://zahur.wordpress.com/ -
That looks like it should work. Are you developing your own client?
Also, have you set your default category at Settings -> Writing in your Dashboard?
-
Thanks for quick response
i am posting to my blog http://zahur.wordpress.com/xmlrpc.php from my web application.
and if i remove category tag from xml then it goes to default caegory.even if i write “<category>abc,pqr</category>”
abc , pqr are two categories then it doesnot go to that category but it goes to “uncategorized”even “<category>1,2</category>” goes to “uncategorized” category
I already set default cat to abc
-
Just to be sure I read that right, is it going to Uncategorized even if you have the default category set to abc?
-
Thanks for response
if i remove code <category>1,2</category> then it goes to abc
otherwise code <category>1</category> or <category>1,2</category> takes post to uncategorizedzahoor
Blog url: http://zahur.wordpress.com/ -
- The topic ‘how to post a post to different category using xml rpc’ is closed to new replies.