Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I post html content to wordpress with xmlrpc?

I've got a script to post some data to wordpress using xmlrpc.

If I use a simple string for the body like "This is a test" it works fine.

However, if it has any HTML formatting in it, it gets horribly mangled when trying to add the post.

How do I post html content to wordpress with xmlrpc?

like image 842
GeoffreyF67 Avatar asked Jun 16 '10 18:06

GeoffreyF67


People also ask

How do I enable XML-RPC php in WordPress?

XML-RPC functionality is turned on by default since WordPress 3.5. In previous versions of WordPress, XML-RPC was user enabled. To enable, go to Settings > Writing > Remote Publishing and check the checkbox.

Does WordPress need XML-RPC?

The xmlrpc. php allows remote connection to WordPress. Without it, various tools and publishing applications simply will not be able to access the website.

Should I disable XML-RPC WordPress?

While the outdated xmlrpc. php file still comes with every WordPress installation, you should disable it because it adds security vulnerabilities to your site.

Does WooCommerce use XML-RPC?

WordPress used XMLRPC to allow its users to interact with their site remotely. It still uses it to power its mobile app and to support plugins like JetPack, WooCommerce, etc. Using the xmlrpc.


1 Answers

Here's a plugin that fixes a problem with some versions of an xml library that strips html: Plugin – LibXML2 Fix | Joseph Scott

like image 188
markratledge Avatar answered Nov 15 '22 07:11

markratledge