Transfer WordPress post to RoR site: is the REST Api the only and/or best solution?

wordpress.stackexchange https://wordpress.stackexchange.com/questions/209936

  •  11-12-2020
  •  | 
  •  

Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange
scroll top