Hello @chan0123,
What programming language are you coding your XML-RPC client with (e.g. PHP)?
When you post a blog post to WordPress, you need to add a “custom field” called ‘enclosure’ with the other posted info such as the title, description/body, etc.. with PHP we do this by first creating the value…
$enclosure_value = $enclosure['url'];
$enclosure_value .= "\n";
$enclosure_value .= $enclosure['filesize'];
$enclosure_value .= "\n";
$enclosure_value .= $enclosure['type'];
Then you add this custom value with the field name ‘enclosure’…
$custom_fields[] = array('key'=>'enclosure', 'value'=>$enclosure_value);
The $custom_fields is then part of the rest of your posted data to the WordPress site.
Thanks,
Angelo
IF you are coding your client end with PHP, this thread on the Blubrry.com forums may be very helpful: https://forum.blubrry.com/index.php?topic=3466.0
Thanks for the information, got it now. Thanks!
Plugin Support
Shawn
(@shawnogordo)
Glad to see Angelo was able to help you out!
If you’ve found the support we’ve provided here to be of value, please consider leaving a review for PowerPress.
These reviews help us with future development of the plugin, and we’d really appreciate it!