I got the query for showing the posts