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

XMLRPC pingback.extensions.getPingbacks not work with parameters

Note that WordPress ships with WP_HTTP_IXR_CLIENT that extends the IXR_Client. So replace require_once ABSPATH . WPINC . ‘/class-IXR.php’; $rpc = new IXR_Client( ‘http://localhost/wordpress/wordpress/xmlrpc.php’ ); with: require_once ABSPATH . WPINC . ‘/class-IXR.php’; require_once ABSPATH . WPINC . ‘/class-wp-http-ixr-client.php’; $rpc = new WP_HTTP_IXR_CLIENT( ‘http://localhost/wordpress/wordpress/xmlrpc.php’ ); Then try replacing: $result = $rpc->query( ‘pingback.extensions.getPingbacks’, ‘http://localhost/wordpress/wordpress/2018/01/17/hallo-welt/&post_type=something’ ); with $result = … 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