Getting all posts from an XMLRPC request [duplicate]
OK, doesn’t look like there is a way to do this. I see now there is an orderby and offset property which can be used by the client to make repeated calls to get all the posts.
OK, doesn’t look like there is a way to do this. I see now there is an orderby and offset property which can be used by the client to make repeated calls to get all the posts.
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
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
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
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
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
I’m pretty sure it’s because there isn’t a method – you’ll have to add your own!
I think you may be confusing the send and response data formats. (The format you are specifying to send with is the response format.) You probably need to just send the value as: array(“users_can_register” => “1”);
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