My son is 8 month old he was a happy child and used to love foods, but 2 week before he was having fever after that he refuses to take solid food. Now he only wants is milk

It happens when kids fall sick. Give milk and dairy products. Give cereals mixed with some dry fruit powder. It helps in quicker recovery.

Check if he is teething. Even elders like us refuse to eat if we are recovering from illness. Let him take time.give lot of fluids.