python-wordpress-xmlrpc icon indicating copy to clipboard operation
python-wordpress-xmlrpc copied to clipboard

custom_fields is not a list by default

Open masnun opened this issue 13 years ago • 1 comments

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?

masnun avatar May 09 '12 07:05 masnun

if code like this: post.custom_fields.append({"key": "_key", "value":"value"})

it's not work!

what can I do for this?

kingmo888 avatar Sep 17 '17 16:09 kingmo888