This happened with our son, and still does actually. My son is now almost 3. He was sick frequently, mainly with ear infections which had an effect on his appetite.
We had to go back to formula after starting him on baby food due to the weightloss he had from illness. He would do really well at daycare (most of the time), and then at home he just wanted a bottle. So to compromise, we would let our son eat yogurt in the morning with us (so at least he was getting some semi-solid food by spoon from us) then at daycare they fed him his 2 jars of babyfood and a bottle or 2, then at night he would get just a bottle at bedtime.
Eventually, he became hunry upon coming home from daycare and we introduced a solid meal for dinner instead of the bottle.
It seemed us slowly phasing out the bottle feeds helped. On the weekends he would eat the babyfood during the day. But sometimes he refused and we would have to give him a bottle. It will take some time, but it gets better.
My son still is like that. I don't know why, but he does tend to eat better at daycare than at home (maybe they put magic dust on the food?? j/k). Though we give him a plate with a starch, protein, and fruit/veggie (same as daycare) he will mainly eat one thing on a plate. Our doctor wasn't/isn't concerned. Give it some time, he should be fine.