You use wherever to indicate that something happens or is true in any place or situation.
Some people enjoy themselves wherever they are.
有些人无论在哪里都很开心。
You use wherever when you indicate that you do not know where a person or place is.
I'd like to leave as soon as possible and join my children, wherever they are.
我想尽快离开这里,去和我的孩子们团聚,不管他们在哪里。
You use wherever in questions as an emphatic form of 'where', usually when you are surprised about something.
Wherever did you get that idea?
你究竟从哪得来的那个想法?