What do you wear on the beach when you go on holiday?
When i go on holiday, i wear only swimming trunks and flip-flops!
When I go on holiday, I only wear swimming trunks and flip-flops!
"Wear only" is correct but "only wear is easier to understand. Either way is good, it depends on your preference.