Saving course id and only displays posts belonging to courses you are in