update posts with categories