Implementing WordPress XML-RPC

You can write standalone pages that can add, edit and modify WordPress content by using XML-RPC communication. To do so you must first enable the XML-RPC option in the Settings->Writing panel. Once you’ve done that you can try the following code:

query('wp.getCategories', BLOG_ID, RPC_USERNAME, RPC_PASSWORD);
$categories = $client->getResponse();

print_r($categories);
?>

Leave a Reply