Array modifier distorts texture

I’m trying to make a number of columns using the array modifier, but when i use the modifier my texture gets all distorted on the “fake” columns. Why is it only working on the first one and how can I fix this?

Try using a UV map with your textures. That’s the best way to ensure the textures are consistent with an array, as the UVs are duplicated with the array.

Hey that fixed it. And I learned basic UV-mapping in the process. Thank you!