Can I deduct work - to - school and vice versa commute?

Last year, my advisor mentioned that I can't deduct commute unless it is from school to work and vice versa, is that true? I can't find any information on that.