Pedantry doesn't always shine through.
And indeed the settlement that became today's city was founded by Spanish colonists in 1610 (and native Americans lived in the area long before that).
But since New Mexico wasn't admitted to the union until 1912, Santa Fe wasn't a state capital until 1912. So it's not the oldest state capital. It's the oldest city that is a state capital.
For what it's worth...