The morning stiffness after rest mostly ocurs due to arthritis or planter fascitis.
As it is persisting for about 2 months you should see the doctor to get the correct diagnosis.
Blood test and X-ray will be needed to reach a colclusion of the diagnosis.
Some measures sometimes help to reduce the pain.
Keep the legs elevated while sleeping.
Stretching exercise is beneficial to get rid of symptoms.
Antiinflammatory drug like Motrin can reduce inflammation.
Hope your early recovery. Regards.