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

Question: how to enable comments in my posts?

Open semente opened this issue 11 years ago • 3 comments

All my posts made by using python-wordpress-xmlrpc library have their comments disabled. How can I enable it? WordPressPost class has the attribute comment_status, but is not documented what arguments it can receive.

Thanks!

semente avatar Feb 11 '14 23:02 semente

You want to use a string with the value "open" or "closed".

Also, an example in the unit tests: https://github.com/maxcutler/python-wordpress-xmlrpc/blob/master/tests/test_posts.py#L43

maxcutler avatar Feb 12 '14 06:02 maxcutler

I'll add some documentation for this in the next release.

maxcutler avatar Feb 12 '14 06:02 maxcutler

Thanks!

semente avatar Feb 12 '14 11:02 semente