Publish a post using XML-RPC WordPress API and Python with category
XML-RPC WordPress API Document says:
struct terms: Taxonomy names as keys, array of term IDs as values.struct terms_names: Taxonomy names as keys, array of term names as values.
This means terms and terms_names are directory, the key name is the name of taxonomy you want, and the value is an array list.
If you want to set a category, you should set
‘terms‘:{‘my-category’:[4]}
or
‘terms_names’:{‘my-category’:["Wordpress"]}
in the post structure, where "my-category" is the name of your taxonomy.
Some information from:解决Python发布wordpress内容返回抱歉,文章类型不支持您的分类法.错误