Multiple new posts using XML-RPC?

Short answer? No. There is a finite list of methods exposed by the XML-RPC interface, and the ones that allow you to create new posts dictate that you create one post at a time. Given, you could always write your own method to allow for bulk post creation, but you should ask a new question … Read more

Why is minimum_args protected?

You can totally swap out the class that runs the xmlrpc server. So create a subclass of wp_xmlrpc_server, use it for the xmlrpc server class, and use all the protected methods you like. Example (not tested, use with caution): <?php class WPSE69959_XMLRPC_Sever extends wp_xmlrpc_server { // override the constructor to add your own methods. public … Read more

Posting via HTTP requests?

the XML-RPC protocol can do that for you, look up how to use it with curl: http://shoaibmir.wordpress.com/2009/03/10/using-curl-for-xmlrpc-calls/ and what the actual tags are: http://codex.wordpress.org/XML-RPC_Support

Working code example of PHP XML-RPC connex to site?

How complex do you want the example to be? This outputs “Hello”. $client = new WP_HTTP_IXR_Client(‘http://example.com/xmlrpc.php’); $client->query(‘demo.sayHello’); echo $client->getResponse(); This outputs “9”. $client = new WP_HTTP_IXR_Client(‘http://example.com/xmlrpc.php’); $client->query(‘demo.addTwoNumbers’, 4, 5); echo $client->getResponse(); This gets the WordPress version: $client = new WP_HTTP_IXR_Client(‘http://example.com/xmlrpc.php’); $client->query(‘wp.getOptions’, 0, ‘username’, ‘password’, ‘software_version’); $response = $client->getResponse(); echo $response[‘software_version’][‘value’]; Source: Me, 4 years ago: … Read more

Create a new post in wordpress with XML-RPC with the correct GUID?

This is an annoying problem, but there is a way to get the correct link if I do: $my_page_ask = array( ‘link’, ‘guid’ ); $params = array(0,$username,$password,$my_page_id, $my_page_ask); $clientresult = $client->query(‘wp.getPost’, $params); $post = $client->getResponse(); The string link contains the correct permalink if: $my_page[“post_status”] = “publish”; It doesn’t work on draft and the string guid … Read more

Storing an XML Response (Transient)?

According to this ticket: Cannot serialize object wrapping 3rd party library structs. Must serialize the xml (to a string) and store that to session and reload the xml when restoring from session When you are storing object in transient it gets serialized and not all objects are capable of that correctly. Store textual XML data … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)