自动创建标签、分类失败
使用WordPressPost发布文章,items_names属性添加标签、分类失败
post.terms_names = {
'post_tag': ['python', 'markdown'], # 文章所属标签,没有则自动创建
'category': ['python'] # 文章所属分类,没有则自动创建
}
解决
检查当前python_wordpress_xmlrpc版本号,经过测试2.0版本自动添加标签、分类失败,2.3版本正常
将python_wordpress_xmlrpc版本更新到2.3
pip install python_wordpress_xmlrpc==2.3

评论已关闭!