Question

I'm creating a new version of my site without WordPress, using Ruby on Rails. How can I transfer all my posts and users to this new site ? I was thinking of using the REST Api but none of the functions related to the Posts allow to retrieve the whole post (images+text+author): https://developer.wordpress.com/docs/api/

What would be the best solution ? It should be possible even if my new site is powered by Rails since the pages are always just HTML/CSS/JS and does not include PHP.

Was it helpful?

Solution

Use the file that wordpress generate at "export". It should contain the basic info you are talking about (although not the user's passwords if you are expecting to get it as well). It is just an xml file which you can parse, you can even look at the code of the wordpress importer for guidance.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top