Tagging posts to custom taxonomies using XMLRPC in R

It looks like custom taxonomies aren’t supported by metaWeblog.newPost. For self-hosted WordPress installs, one could try to use this hook, to adjust the tagging of posts added with metaWeblog.newPost: /** * Fires after a new post has been successfully created via the XML-RPC MovableType API. * * @since 3.4.0 * * @param int $post_ID ID … Read more

New post created with XML-RPC works fine but fails to assign category

I figured out the issue. Actually it is my mistake. I am using XML-RPC metaWeblog.newPost but I was applying solution which is for XML-RPC wp.newPost So correct solution in case of xml-rpc metaWeblog.newPost is – $content[‘categories’] = array(‘Featured’); //Works. And in case of xml-rpc wp.newPost, it is – $content[‘terms’] = array(‘category’ => array( 10 ) … Read more

How to process shortcodes in XML-RPC

Explanation of the behavior A shortcode is meant to be processed during runtime (when rendering & displaying a post on the public facing view). It is absolutely not meant to be a pre-processor during saving the post. The receiver simply doesn’t have your parser (which is the function processing the shortcode) and therefore will get … Read more

Get Post meta via XML-RPC using wp.getPost

the filter xmlrpc_default_post_fields can modify the defult fields sent in rpc, but the defults array( ‘post’, ‘terms’, ‘custom_fields’ ) alredy include custom_fields you also have the filter xmlrpc_prepare_post, where you can add extra stuff to the rpc:s post

Is XML-RPC still a security risk?

yes it is a security risk. Should it be disabled? most likely. Is it a OMG BBQ type of emergency? no. If you have strong passwords for your accounts, it is not more of a security risk than the login form. It is a pointless security risk in the sense that it provides an additional … Read more

XMLRPC won’t connect?

Instead of using XMLRPC which isn’t available on some hosts, use the REST API instead. Send a HTTP POST request to the posts endpoint containing a JSON object with your desired post, with an authentication header. To do this, we’re going to need an authentication plugin ( standard WP only supports nonce + cookie which … Read more