Thanks for the reply. I guess in my haste to post I wasn't as clear as I should have been. I'm trying to figure out a way to programmatically create the initial blog post and include the media url for the podcast episode. The podcasts are stored on another server and everything works great when I include the media url while creating the post manually. I can successfully use the following code in a PHP script to add a post. What do I need to add to include the media url? That is, I'm assuming I can add something to the $content array, I just don't know what the parameters are named.
function wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$category,$keywords='',$encoding='UTF-8') {
$title = htmlentities($title,ENT_NOQUOTES,$encoding);
$keywords = htmlentities($keywords,ENT_NOQUOTES,$encoding);
$content = array(
'title'=>$title,
'description'=>$body,
'mt_allow_comments'=>1,
'mt_allow_pings'=>0,
'post_type'=>'post',
'mt_keywords'=>$keywords,
'categories'=>array($category)
);
$params = array(0,$username,$password,$content,true);
$request = xmlrpc_encode_request('metaWeblog.newPost',$params);
//$request = xmlrpc_encode_request('blogger.newPost',$params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
curl_setopt($ch, CURLOPT_URL, $rpcurl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 1);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
In my minimal experience with WordPress and PowerPress I believe for a very simple podcast setup I just need to create a post for each media file, and include the media url in the post. I'll be learning much more about both WP and PP in the very near future but for now I just need this basic functionality.
Thanks for indulging me.