python-wordpress-xmlrpc
python-wordpress-xmlrpc copied to clipboard
custom_fields is not a list by default
while trying to add custom fields as mentioned in the docs, I noticed that the custom_fields are not by default a list. So I had to do this:
post.custom_fields = []
post.custom_fields.append({"key": "key", "value":"value"})
It works!
Is it possible that we manually don't have to force it as a list?
if code like this:
post.custom_fields.append({"key": "_key", "value":"value"})
it's not work!
what can I do for this?