The position of the adverb ‘only’ depends on the word you want to qualify. You put ‘only’ as near as possible to the word or phrase.you want to qualify.
Look at this: He works on Tuesday and not on any other day = He works only on Tuesday.
He does nothing for six days a week but he has a job on Tuesday = He only works on Tuesday.