Added query to get posts