python-wordpress-xmlrpc custom fields
widget.custom_fields = [
{
'key': 'job_location',
'value': 'Newyork'
},
{
'key': 'job_listing_category',
'value': 'hotel'
}
]
python-wordpress-xmlrpc custom fields
widget.custom_fields = [
{
'key': 'job_location',
'value': 'Newyork'
},
{
'key': 'job_listing_category',
'value': 'hotel'
}
]
python-wordpress-xmlrpc custom fields
my_blog = Client('http://myblog.com/xmlrpc.php','Username','Password')
myposts=my_blog.call(posts.GetPosts())
post.custom_fields = [{
'key': 'slug_1',
'value': 'This is what you want to put inside the section'
},
{
'key':'slug_2',
'value': 'this is where you put another thing'
},
{
'key': 'slug_3',
'value': 'this is where you put another thing'
},
post.id = my_blog.call(posts.NewPost(post))
post.post_status = 'publish'
my_blog.call(posts.EditPost(post.id, post)
python-wordpress-xmlrpc custom fields
from wordpress_xmlrpc import Client, WordPressPost
from wordpress_xmlrpc.methods.posts import GetPosts
from wordpress_xmlrpc.methods import posts
from wordpress_xmlrpc import WordPressTerm
from wordpress_xmlrpc.methods import taxonomies
wp = Client('http://127.0.0.1/15wp/xmlrpc.php', 'admin', '123456')
# now let's create a new product
widget = WordPressPost()
widget.post_type = 'job_listing'
widget.title = 'Widgetlast02'
widget.content = 'This is the widgets description.'
widget.post_status = 'publish'
widget.custom_fields = []
widget.custom_fields.append({
'job_location': 'Newyork',
'job_listing_category': 'hotel'
})
widget.id = wp.call(posts.NewPost(widget))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us