Retrieving an individual page using XML-RPC

To retrive an single post you will need to invoke the wp.getPage method. This method require 4 parameters $blog_id, $page_id, $user_name, $user_password.

query('wp.getPage', BLOG_ID, PAGE_ID, RPC_USERNAME, RPC_PASSWORD);
$post = $client->getResponse();

echo json_encode($post);
?>

Leave a Reply