Teacher pay has mostly kept up with inflation for 50+ years.

Average teacher pay in each state, adjusted for inflation. (2024 dollars)