add categories to each post