modified getPosts for date