formats display of posts