• I am using a XML RPC to create a wordpress post, if I used powerpress, how can I use XML RPC? I am struggle with how to put the media URL inside the post. Any help will be appreciated. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Angelo Mandato

    (@amandato)

    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

    Plugin Contributor Angelo Mandato

    (@amandato)

    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

    Thread Starter chan0123

    (@chan0123)

    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!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘XML RPC support’ is closed to new replies.