fetch posts with types