简体   繁体   中英

Best way to Read WordPress as JSON

I attend to create an android version of my WordPress blog. So, i do some google search and Stackoverflow search to find the best way to do this works:

  1. find the count of the post
  2. category's names.
  3. reed posts, page by page (or a number like read 10 post for every request)
  4. reed posts by they tag and act like 3.
  5. get the thumbnail for images.
  6. find the number of comment for each post.
  7. reed all comments.
  8. send comment.
  9. and ...

So in my research si found some plugins and because of the company who make that, i think WP REST API is more trustful than the others but there is other plugin like JSON API. so based on my needs, what is the best choice?

PS: I find out the WP REST API have a version 2, but they say, it is not good enough to being used in large app. Thanks.

The best option is to use the WP Rest API.

https://wordpress.org/plugins/json-rest-api/

This plugin is in the process of being rolled into WordPress core, half of which is already done as of WordPress 4.4 https://wordpress.org/news/2015/10/wordpress-4-4-beta-1/

Don't use the V2 API at the moment, it's still subject to change. You can use the legacy API here http://wp-api.org .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM