Toddlers eating..

So my son went from eating everything to only eating only certain foods. It’s a guessing game on what he’ll eat now, and 90% of the time what we cook he won’t eat. It’s frustrating because he use to eat everything that we eat and now all of a sudden(couple months) he won’t eat it. There is a couple things that he loves so of course that what we give him, it just sucks that he won’t eat like he use to. So is there such thing as a phase for toddlers with food or is he just going to continue to be a picky eater? Gahhh. I don’t know what to do.