Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #post #id
ADD COMMENT
Topic
Name
6+8 =