https://thejeshgn.com/2011/04/11/javascript-api-for-wordpress-posts/
Javascript API for wordpress posts