generator works for posts