Jake
0
Q:

python-wordpress-xmlrpc get post id

from wordpress_xmlrpc import Client
from wordpress_xmlrpc.methods.posts import GetPosts
wp = Client("https://wordpress.example.com/xmlrpc.php", "admin", "password")
allposts = wp.call(GetPosts())
for thepost in allposts:
    print thepost.id
0

New to Communities?

Join the community