python-wordpress-xmlrpc
python-wordpress-xmlrpc copied to clipboard
Python library for WordPress XML-RPC integration
This removed the featured images on all my posts: ``` python allposts=client.call(posts.GetPosts({'number':1000})) for post in allposts: post.content=re.sub(r"https?://debris.glaciology.net/","/",post.content); client.call(posts.EditPost(post.id,post)) ```
Hi, Please let me know how to insert the html tag inside the post.content. For example: post.content = '< div class="abc">Hellow Word' Regards,
while trying to add custom fields as mentioned in the docs, I noticed that the custom_fields are not by default a list. So I had to do this: ``` post.custom_fields...
Hi, Looking at [this page](http://wordpress.stackexchange.com/questions/137501/how-to-add-product-in-woocommerce-with-php-code) it looks like it's possible to use the XMLRPC endpoint to create/update/etc products in Woocommerce, which itself uses posts of type "product" instead of post/parent/etc...
Using the python-xmlrpc, I'm wondering if I could somehow encode a select field in the custom_fields dictionary. The select fields are an advanced custom field plugin type [https://www.advancedcustomfields.com/resources/select/](https://www.advancedcustomfields.com/resources/select/) that I'm...
How would I get all posts, without having to check how many there are to begin with manually. I tried looking and searching the docs, with no luck. `items =...
What is correct publish date format? I tied use ISO, python datetime, 1994-11-05T08:15:30-05:00, any format, and only get 01.01.1970 date. I have 100 posts and want to upload it as...
``` # -*- coding: utf-8 -*- from wordpress_xmlrpc import Client from wordpress_xmlrpc.methods import posts client = Client (...) posts = client.call(posts.GetPosts()) print posts ``` Returns: > File "/Users/francesco/env/lib/python2.7/site-packages/wordpress_xmlrpc/wordpress.py", line 51,...
my website is in wordpress 4.7, when i use this code, my code throw exception code: wp = Client('http://www.xxxx.com/wordpress/xmlrpc.php', 'myname', 'mypass') exception is this: File "H:/pythoncode/qiankundanuoyi/test.py", line 43, in testXMLRPC()...
Hi, this issue has been already commented & closed but I'm still unsure what was the final solution when this error is spawn: `xml.parsers.expat.ExpatError: XML or text declaration not at...