skip to Main Content

I’m using the WordPress Rest API to upload a post but I don’t understand the format of the body parameter. It seems to accept HTML but I’d like it to accept .docx format. Is that possible?

2

Answers


  1. Chosen as BEST ANSWER

    Found out I can use the pandoc package to covert .docx to .HTML.

    Thanks.


  2. … I’d like [the WordPress REST API] to accept .docx format. Is that possible?

    No, not with the standard API.

    You or somebody, could create a plugin to do this conversion as part of the upload process.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search