get posts - How to get posts using WordPress API