rewrite posts array so all posts are in it.