binxio / wordpress-markdown-blog-loader

loads Markdown blogs into Wordpress
Apache License 2.0
10 stars 3 forks source link

How to specify multiple authors? #6

Open timotk opened 1 year ago

timotk commented 1 year ago
mvanholsteijn commented 1 year ago

Multiple authors is not yet supported. I will fix that when I get back for holiday

Roymprog commented 3 weeks ago

I was looking into adding this as I wanted to add a multi-author blog to the xebia-blog repo. For multiple authors you need to get the id for multiple users, see this code. I'm not allowed to because listing users is only allowed as Administrator. I tried to work around it by manually providing the user id. However, wordpress does not support multiple authors by default. We are using the Co-Authors-Plus plugin to enable multi-author. This means we cannot create/update a blog post with multiple authors via the Wordpress REST API. AFAIK, the plugin also doesn't support creating/updating a post with multiple authors either.

mvanholsteijn commented 3 weeks ago

@Roymprog yes I reached that conclusion as well. Wordpress is an insanely popular and inept system..

You would need to make PR on the Co-Authors-Plus plugin to support multiple authors.

To complicate matters, the coauthor user id is not the user id of the user in WP.