Using the GetMediaLibrary() method in python-wordpress-xmlrpc.media, how to iterate over the result?
To iterate over media you must first call to WP using your client: allwp_media = client.call(media.GetMediaLibrary())
To iterate over media you must first call to WP using your client: allwp_media = client.call(media.GetMediaLibrary())
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
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
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
“XML-RPC server accepts POST requests only” error message
I was able to greatly reduce the severity of the problem by installing/activating the PHP extension file-info, which was flagged by WordPress as a configuration issue. While it didn’t eliminate the issue completely, the lockup only happened once more during my post migration and the unavailability was much shorter than previous occurrences. Now that the … Read more
I was experiencing a similar problem and nothing was working for me, so I posted my solution here: How to validate XML-RPC post creation and cancel when needed? Maybe you want to check it. I hope it helps!
Azure WordPress deny access to xmlrpc
Can I disable xml-rpc by setting it to false?
the update post function actually calls the insert function so it should work, now I’m not sure but try changing: if(!strlen($photo_url)){ to: if(empty($photo_url)){ since php strlen() returns 0 on an empty string.