Add method to filter posts by time