I checked all wordpress xml rpc methods, but they all require post_id to get the post. How can I get a post using its title? Or, is there a rpc method to get post_id from title so that I can get the post by post_id later?
Thanks!
I checked all wordpress xml rpc methods, but they all require post_id to get the post. How can I get a post using its title? Or, is there a rpc method to get post_id from title so that I can get the post by post_id later?
Thanks!
There doesn't seem to be a way to do it with the standard xml rpc methods in Wordpress, but thankfully there's always ways to extend it. If you install the "Extended API over XMLRPC" you can get access to all the Wordpress APIs over xml rpc (there are configuration settings to restrict this for security reasons). You can then call the get_page_by_title() API remotely to get a post by its title (pseudocode):
$xmlrpc_client->call('wpext.callWpMethod', $username, $password, 'get_page_by_title', $title, 'OBJECT', 'post');
Edit: the plugin requires the first two arguments to be a valid username and password so changed above to reflect.