xml-rpc and tags problem
-
I use this function for send a new post on my wordpress blog:
function post2Xml($title, $text, $categories, $tags=””)
/* —————————————————————
Internal function that converts a PHP array to XML representation
of a WordPress post.
————————————————————— */
{
if(is_string($categories)) $categories=preg_split(“/[^0-9a-z]+/i”,$categories);
if(!count($categories)) array_push($categories,1);
$categories=implode(“,”,$categories);
$postXml =
“<title>”.html_entity_decode($title).”</title>”.
“<category>”.$categories.”</category>”.
html_entity_decode($text).””
;
return $postXml;
}I can send the tags (ex.: “news,ambient”) string with title and text of post?
-
Afraid you’re in the wrong forum and need to be over at WordPress.ORG. Our software here is a bit different and we won’t be able to help:
https://en.forums.wordpress.com/topic.php?id=3700&replies=1
- The topic ‘xml-rpc and tags problem’ is closed to new replies.