/ Published in: Python

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import wordpresslib url = 'http://www.MYDOMAIN.com/xmlrpc.php' wp = wordpresslib.WordPressClient(url, 'USERNAME', 'PASSWORD') wp.selectBlog(0) post = wordpresslib.WordPressPost() post.title = 'Sample Post' post.description = 'Sample Content' idPost = wp.newPost(post, True)
URL: http://blackcodeseo.com/automating-wordpress-postsautomating-wordpress-posts/
Comments
