The horse, when wild, detested all but Ted (5)
I believe the answer is:
steed
'the horse' is the definition.
(steed is a kind of horse)
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for steed that I've seen before include "Spirited horse" , "A mount (poet.)" , "Swift horse" , "Trusty horse" , "Powerful horse" .)